in step 5
SendLineAndGrab("MAIL FROM: "+from);
someserver return:
501 Bad address syntax
so this line must chang to:
SendLineAndGrab("MAIL FROM:<"+from+">");
in step 5
SendLineAndGrab("MAIL FROM: "+from);
someserver return:
501 Bad address syntax
so this line must chang to:
SendLineAndGrab("MAIL FROM:<"+from+">");
How can we add to this code an option to send attached files?
7-bit encode the attachments using something like Base64 and then attach them to the body of the email as a MIME attachment making sure that the message and each attachment has a different id so that the receiving email client knows how to seperate the parts again.
See POCO Libraries, its very helpfull
http://pocoproject.org
thank you very much
Can someone post some working code please? It'd be much appreciated and save the rest of us a lot of time and effort.
Sure, we could dig at this for a few days and get it to eventually work -- but why climb a mountain when someone's already built an escalator?
Cheers in advance
Bookmarks