| Dart Home | PowerTCP Mail for ActiveX | Custom Development | Reply | PowerTCP Mail for ActiveX Topics | Forums |
| Author | Forum: PowerTCP Mail for ActiveX Topic: AddText question |
| aparna12 aparna@teleco.com From: decatur, GA USA Posts: 25 Member Since: 01/04/02 |
posted July 30, 2003 11:41 AM Can i set the content pSmtp->GetMessage()->PutContent(DartMail::msgMessage,DartMail::msgString,_bstr_t("text/html")); and then say pSmtp->GetMessage()->AddText(message, "us-ascii"); the message looks like : <html> <body> <a href = "http://pinnacleatd/dialer.asp">123</a> </body> </html> |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted July 30, 2003 11:47 AM I'm not sure what you are asking. What happens when you try it? |
| aparna12 aparna@teleco.com From: decatur, GA USA Posts: 25 Member Since: 01/04/02 |
posted July 30, 2003 11:50 AM it doesn't translate the html code. the message should look 123 with a link. what it looks like is <html> <body> <a href = "http://pinnacleatd/dialer.asp">123</a> </body> </html> |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted July 30, 2003 12:46 PM The reason it doesn't work is because the AddText method is for adding text, not html. If you have the HTML as a file already, the easiest thing to do would be to use the AddHtml method and pass the file to it. Alternatively, you can make a simple HTML message like so: pSmtp->GetMessage()->GetHeader()->Add(DartMail::msgContentType, _bstr_t("text/html"), true); pSmtp->GetMessage()->PutText(_bstr_t("<html>\r\n<body>\r\n<a href = \"http://pinnacleatd/dialer.asp\">123</a>\r\n</body>\r\n</html>")); |
| aparna12 aparna@teleco.com From: decatur, GA USA Posts: 25 Member Since: 01/04/02 |
posted July 30, 2003 1:30 PM Thank You . That works. |
| Reply | PowerTCP Mail for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|