Since pkgs for mutt and uuencode is not possible to install any other options for sending attachment will be useful. How can i send a file as an attachment via email in bash script, without using mutt and uuencode. We used the following code to send an attachment using mailx. You can send an email with both attachment and body message as shown below. How to send an email with attachment and body from linux. Send file as attachment without using mutt and uuencode. Need to send attachment in mail without using uuencode via. Solved using mailx to send an attachment in redhat 6. How to do this, prefereably using only the mail command. Dear all, would some one help me with this to send a file as attachment in a mail using a script without uuencode. Linux send mail alert with attachment from linux command line youtube channel link.
We are moving an application from solaris to linux redhat 6. Linux send mail alert with attachment from linux command. The available commands for sending mail differ quite a lot on different unix variants. On what operating system if linux, what distribution.
It is sending the email with the attachment but the attachment does not conatin any data. I have to send mail to many mail clients and i want to know if there is a method to attach files that can be read by the major number of them. Now its time to send an email attachment using mail command a shown. The file is present in the location specified and it contains data. Although the file should be displayed without any problems by the receiving mua, piping from uuencode wont technically produce an email with an attachment. I was told redhat 6 mailx had that functionality without using uuencode. Need to send attachment without using uuencode and mutt hi, in my linux am unable to send attachment to mail. But as you say though, if your final system cant support uuencoded files. Mimencode is intended to be a replacement for uuencode for mail and news use. Basic syntax to send emails from linux machine using mailx command is show below.
717 380 545 663 756 1294 1558 426 53 1327 1045 1547 1321 1319 413 909 1534 1357 260 707 564 232 1527 14 73 460 990 213 1219 365 1087 552 887 1341 308 198 268 349 1365 241 84