Write an email with attachment with Mail.app from terminal

Posted by DerKlops on Super User See other posts from Super User or by DerKlops
Published on 2010-03-30T14:27:16Z Indexed on 2010/03/30 14:33 UTC
Read the original article Hit count: 611

Filed under:
|
|

I would like to start writing an email with Mail.app from Terminal, and add an attachment. Something like this:

macbook:~ me$ /Applications/Mail.app/Contents/MacOS/Mail -s the_subject -to [email protected] < ~/Downloads/file.zip

© Super User or respective owner

Related posts about mac

Related posts about mail.app