I would like to send a mime compliant message with an attachment using smtp.
I found all the pieces but can't get them to work together.
Do you have an example that does it all? (I found separate examples but I haven't figured out how to do it all at once!)
In addition I would like to set the following headers in this way:
From:
[email protected]
Reply-to:
[email protected]
Return-path:
[email protected]
Sender:
[email protected]
smtp username:
[email protected]
Note that there are two different email addresses from two different domains.
In another post you answered someone that, using the smtp class the Return-path is set to the same email as from, but this is not what I would like to have.
Thank you very much for any help