| Dart Home | PowerTCP Mail for .NET | Custom Development | Reply | PowerTCP Mail for .NET Topics | Forums |
| Author | Forum: PowerTCP Mail for .NET Topic: How can we mention a mail as a HTML mail |
| gauravjpr gsaxena@smxglobal.com From: Delhi, India Posts: 7 Member Since: 11/15/07 |
posted September 24, 2008 5:46 AM we were using TCP dart for quite a some time,we are sending frequent mail using this,but we are stuck when it comes to compatiblity, we could not able to mention Dart that this mail is in HTML format.please help |
| Jason Farrar (Admin) From: Oneida, NY USA Posts: 223 Member Since: 07/24/07 Extra Support Options Custom Application Development |
posted September 24, 2008 5:07 PM I'm sorry, could you please clarify? Are you trying to send an HTML E-mail? ------ |
| gauravjpr gsaxena@smxglobal.com From: Delhi, India Posts: 7 Member Since: 11/15/07 |
posted September 25, 2008 5:21 AM Yes, we are trying to send HTML email and TCP Dart didnt recognise it as HTML mail and treat it as plain text mail. Is there anything where we can make TCP understand that the mails sent are HTML mail. Any help would be appreciated. Thanks in advance. |
| Jason Farrar (Admin) From: Oneida, NY USA Posts: 223 Member Since: 07/24/07 Extra Support Options Custom Application Development |
posted September 25, 2008 1:49 PM There are two overloads for the constructor of MessageStream object in the Mail component that allow you to send HTML messages. One of them takes a string which is the location of an html file to send as a message. ex: MessageStream Msg = new MessageStream("C:\\Mails\\Message.htm"); The second takes a stream and a string. The stream is the actual html message while the string is the location of any resources(images,etc) to be included in the message. ex: MessageStream Msg = new MessageStream(HtmlStream,"C:\\ResourceFolder"); For the second overload if you've already constructed a string containg the html message you could then convert it to a byte array and write it to the memory stream and use that as the input argument for the constructor. ------ |
| Reply | PowerTCP Mail for .NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|