How do i add an attachment using mailx mailer command on linux?



  • Use the following command:

    e.g:
    $ mailx -a -s "My Image" my-recipient@dest23.com

    When you hit return, it wants you to enter a message or just dot .

    $ mailx -a homedesgin.png -s "Home Design Draft" my-recipient@dest23.com
    This is the home design draft, let me know what you think.
    .
    EOT
    

 

© Lightnetics 2018

Looks like your connection to Lightnetics was lost, please wait while we try to reconnect.