Question: How Do I Send an Email with an Attachment in Linux?
Contents How Do You Send an Attachment in Linux? 4 Ways to Send Email Attachment from Linux Command Line Using Mail Command. Mail Is Part of the Mailutils (On...
Contents
How do you send an attachment in Linux?
4 Ways to Send Email Attachment from Linux Command Line
- Using mail Command. mail is part of the mailutils (On Debian) and mailx (On RedHat) package and it is used to process messages on the command line. …
- Using mutt Command. …
- Using mailx Command. …
- Using mpack Command.
Must Read
How do I attach a file to an email in Linux?
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.