How to send email with attachments from command line

6 Comments

  1. much simpler:

    mail -s “subject” -a “filename”

  2. mailx [-BDdFintv~] [-R address ] [-s subject] [-a attachment ] [-c cc-addr] [-b bcc-addr] [-r from-addr] [-h hops] [-A account] [-S variable[=value]] to-addr . . .

  3. You can also use mail , e.g. :

    # mail -a filename -s “you subject” mail@mail.com

  4. howzit folks?

    these tips are helpful but what i’ve been struggling with is trying to send spam email as an attachment to spamcop within kmail using the filter actions. Does anyone have any bright ideas to do this?

    cheers
    aztrix

Leave a Reply

Your email address will not be published.