Hi,
I want to create a new mail with the default mail client and attach a file automatically to it.
To create a new mail to [email protected]
with subject foo
and body bar
, I can do the following:
open "mailto:[email protected]?subject=foo&body=bar"
How can I attach a file now?
If this is not possible this way (with open
), what are my alternatives?
I would prefer a solution which works in Java as well as in native languages (C++, ObjC). So if there is a way via shell to do this, this would make it easy as I can just spawn such a progress.
Otherwise I would have to fall back to some SMTP engine and just write an own small mail sender.