Automatic email replies

  • Thread starter Thread starter Emmanuel
  • Start date Start date
E

Emmanuel

hi,

i want to make a tool which automates email replies. How can i include
the original message body in my reply using the same format as a normal
email client would do, in both html and text formats?
Are there standards on this? example, if i look at what MS outllok does to
the body, would it be supported in all email clients?

thanks!
 
"same format as a normal email client", I have seen some quote the text and
others embed the original message as an attachment. I don't think there is
a standard. Most just copy the text part and add a ">" character to each
line. You could do this like so..

NewBodyText = NewMessage + "\r\n\r\n" +
OriginalBodyText.Replace("\r\n",\r\n>").

If the message is in HTML you can use other HTML commands to get the look
you want. Try sending a reply with your favorite email client then look at
the source of the message it creates. The source will show you how they did
it.

You can use FreeSMTP.Net to do the text + HTML sending.
http://www.quiksoftcorp.com/freesmtp/

Take a look at the extended sample. It will add both a Plain text part and
an HTML part to the message. If the client does not support HTML it should
automatically show the text version.

Sample:
http://www.quiksoftcorp.com/freesmtp/samples/extended_c.htm
 
Back
Top