Contents
How do I send attachments with mailx?
Use the new attachment switch (-a) in mailx to send attachments with the mail. The -a options is easier to use that the uuencode command. The above command will print a new blank line. Type the body of the message here and press [ctrl] + [d] to send.
How do I send multiple attachments with uuencode?
uuencode can also be used to sent multiple attachments. The first line encodes the file “my_file” and creates the file “my_attachment”. The second line uses mailx to send the file “my_attachment” to [email protected] with a subject line of “This is a mail with only one attachment”.
How do I send a file as an attachment in Linux?
Especially for Sysadmins, can attach a backup file, log file/system operation report or any related information, and send it to a remote machine or workmate….4 Ways to Send Email Attachment from Linux Command Line
- Using mail Command.
- Using mutt Command.
- Using mailx Command.
- Using mpack Command.
How to send email attachment with different attachment name?
– Unix & Linux Stack Exchange How to send email attachment using mailx -a with a different attachment name? Could you please advice how this can be done using mailx -a? The only option seems to be to copy file with a different name, and then try.
How to send mails with attachments using mailx?
Use the new attachment switch (-a) in mailx to send attachments with the mail. The -a options is easier to use that the uuencode command. The above command will print a new blank line.
How to send attachments with mailx and uuencode?
KornShell (ksh) code to send attachments with mailx and uuencode? I need to attach a file with mailx but at the moment I am not having success.
Is there a program that can send email with an attachment?
This version of mailx can also send using SMTP (the man has all the details), so it does not necessarily need a local sendmail program: As said, all the above needs heirloom-mailx; bsd-mailx cannot do (real) attachments. Here are some other tools that can send email with attachments, but are somewhat less commonly installed.