Thanks for these classes very usefull for me.
But I have 3 problems :
- more and more we have to give a user and password to log on smtp server, how can it be handled in these classes
- mails arriving in my mailbax do not display date and time ? something missing in smtp exchange to handle this ?
- my biggest problem : I send a mail with a files attached. But depending the file I attached, mail arriving in my mailbox still have the file or do not have it anymore. I follow the code till the send of body part, file is MIME encoded and sent but I don't retrieve it in the mailbox. It doesn't appear to be a random problem because when I use file "a.txt" it always works, and when I use file "b.txt" it always misses ... I try to simplify the maximum "b.txt" (it contains a simple line of usual characters) but I never succeed in retrieving it in the mail received in mail box. The mail itself is always present, only the file is missing .
Any suggestion for debugging or solution will be appreciated
These classes are excellent and I have enjoyed learning form these examples however, I cannot seem to get my own agent to work in the way that I want. I can use the existing classes to attach an rtf document to an email but what I really want is to embed enriched text directly into the e-mail message body.
To that end I wrote an agent for TEXT_ENRICHED, defined that eMIMETypeCode, and kind of jammed together the AddMIMEPart member functions of CAppOctetStream and CTextPlain to get CTextEnriched::AddMIMEPart which handles encoding. Is this on the right track? No matter what I do the .rtf shows up as an attachment and never is expanded into the message body as desired.
Anyone have constructive comments?
I try using this code (with several changes, mostly because of the unicode) on PocketPC, and encounter a problem with the Receive() from the socket after the HELO is sent.
The Send() ends well (I check its return value in order to be sure), but then the Receive() gets stuck, and the application hangs.
Did it happen to anyone on PC ? does anyone have any idea how to solve it ?
I want to use this class to send mails to a domain registration robot. Therefore i have to fill the from field with a string like "userID"<email@example.com>. If I try so, I always get the following error: "503:Server not ready for data". What do I do wrong?