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

  • Use the following command:

    $ mailx -a <attachment.png> -s "My Image"

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

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


© Lightnetics 2019