Contents
How to use uuencode to send an email?
Therefore, if you’re on Linux, you will need to write the uuencoded data to a file before using mailx: This sends an email to [email protected] with an empty body and the attachment from file.uue. Almost 2 years later, but… it seems like uuencode or mail is broken on Linux. Or maybe it’s working correctly but Outlook is broken. Who knows?
How to send a file as an attachment in email?
I need to send one File as an attachment by email in the Script (KSH). I could not find any way using sendmail command. Can somebody help me in sending file as an attachment by email though ksh Script.?
How do I encode an attachment in email?
You can use uuencode to encode the attachment. Most email clients recognize uuencoded attachments. Make sure there is an empty line after email headers in email.txt file.
Can You Send attachments in / usr / sbin / Sendmail?
If you’re stuck with /usr/sbin/sendmail then you have a lot more to do. sendmail has no concept of attachments and treats email content as a flat US-ASCII text (see this answer for details). To send attachents with sendmail you’ll need to format your mail content as a MIME message.
How to send a message as an attachment in Linux?
On RHEL Linux, I had trouble getting my message in the body of the email instead of as an attachment . Using od -cx, I found that the body of my email contained several /r. I used a perl script to strip the /r, and the message was correctly inserted into the body of the email.
What’s your OS, uname-a, uuencode?
Last edited by vbe; 02-12-2013 at 09:57 AM.. What’s your OS, uname -a? uuencode should take two arguments or must read from stdin. uuencode is not compliant with MIME attachments, so is visible in the body text by most mail readers.
How to send an email with an attachment?
Currently sending an email with an attachment: I wish to add a message body. How should i? The usual way is to use uuencode for the attachments and echo for the body: The best way is to use mpack! Johnsyweb’s answer didn’t work for me, but it works for me with Mutt: Try this it works for me: