| Dart Home | PowerTCP Mail for ActiveX | Custom Development | Reply | PowerTCP Mail for ActiveX Topics | Forums |
| Author | Forum: PowerTCP Mail for ActiveX Topic: Text mail is sent as multipart |
| pixelator From: Brighton, MA USA Posts: 1 Member Since: 04/01/05 |
posted April 1, 2005 2:12 PM When I send a plain text message it is received as a Multipart/mixed content-type using the code: MessageStream message = new MessageStream(); message.From = new MailAddress(useraddress); message.To.Add(new MailAddress(rcpt)); message.Subject = tbSubjectValue.Text; message.Text = wholeMessage; smtp1.Server = LocalServer; smtp1.Send(message); received headers: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_2_905433078" Date: Fri, 1 Apr 2005 12:42:59 -0500 if I add content type and charset manualy using: MessageStream message = new MessageStream(); message.From = new MailAddress(loggedusername.Text); message.To.Add(new MailAddress(rcpt)); message.Subject = tbSubjectValue.Text; message.Text = wholeMessage; message.Type = "text/plain"; message.Charset = "iso-8859-1"; smtp1.Server = LocalServer; smtp1.Send(message); ...then I receive the following headers. Content-Type: text/plain MIME-Version: 1.0 Date: Thu, 31 Mar 2005 17:00:49 -0500 I also get the same result using: charset = "US-ASCII"; and charset = "iso-8859-1"; There is no charset in the header. There is also no Content-Transfer-Encoding. 1) will this present any problems delivering mail to other servers. 2) How do I send a simple text email using "US-ASCII" and quoted-printable encoding 3) How do I set these correctly. Thank you for you help |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted April 1, 2005 4:36 PM This the the Mail Tool forum. The code you posted looks like you have Mail for .NET I think the best way we could help you at this point would be to simplify your example a little and handle this via our regular support (support@dart.com) Please send us an email containing a test program that uses MessageStream.Store to store a file called "Message.eml" that is your best attempt to create the message. Zip this project up into a single zip file. To the zip file add a file called "DesiredMessage.eml" that represents what you are shooting for. |
| Reply | PowerTCP Mail for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|