How to send email with attachments from command line


  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”

  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?


Leave a Reply

Your email address will not be published. Required fields are marked *