![]() |
|
|
|
#1 |
|
I hope this is the right forum to ask the following question:
Using CDOSYS to send HTML mail and getting exclamation mark ! at or after every 991st character. The application worked fine on Windows 2000 but gives this problematic behavior on Windows 2003. There is a solution for ASP (set encoding to "quoted-printable") but we cannot seem to find anything for .Net (C#). Any suggestions would be appreciated! =?Utf-8?B?U2pvZXJ0IEViYmVu?= |
|
|
|
|
#2 |
|
Posts: n/a
|
You can use CDOSYS from within ASP.Net by including the
CDOSYS dll file in your solution. CDOSYS provides much more functionality than the .Net mail object. Give it a shot. You would pretty much use it the same way that you use CDOSYS from ASP. Very easy. Sample CDOSYS usage (not for standard mail): CDO.Message cdoMessage = new CDO.MessageClass(); ADODB.Stream adoStream = null; CDO.ConfigurationClass cdoConfig = new CDO.ConfigurationClass(); cdoConfig.Fields [CdoConfiguration.cdoHTTPCookies].Value = MakeCookieString(cookies); cdoConfig.Fields [CdoConfiguration.cdoURLGetLatestVersion].Value = true; cdoConfig.Fields.Update(); try{ cdoMessage.MimeFormatted = true; cdoMessage.AutoGenerateTextBody = false; cdoMessage.Configuration = cdoConfig; cdoMessage.CreateMHTMLBody (url, CDO.CdoMHTMLFlags.cdoSuppressNone, "", ""); cdoMessage.BodyPart.Charset = "utf-8"; cdoMessage.BodyPart.BodyParts [1].ContentTransferEncoding = "quoted-printable"; adoStream = cdoMessage.GetStream(); adoStream.Charset = "utf-8"; adoStream.LineSeparator = ADODB.LineSeparatorEnum.adLF; } catch(Exception ex){ throw new Exception (String.Format (_errorString, "MailUtilities.MhtmlGenerator.GetDataStream" , ex.Message)); } finally{ cdoMessage = null; } return adoStream; >-----Original Message----- >I hope this is the right forum to ask the following question: > >Using CDOSYS to send HTML mail and getting exclamation >mark ! at or after every 991st character. The application >worked fine on Windows 2000 but gives this problematic >behavior on Windows 2003. There is a solution for ASP >(set encoding to "quoted-printable") but we cannot seem >to find anything for .Net (C#). > >Any suggestions would be appreciated! > >. > Charles Chen |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Store HTML table Values into Database | subscribeid | Software | 0 | 09-05-2008 02:39 PM |
| How To Access HTML elements in code behind??? | nedums_b | Software | 1 | 02-07-2008 07:15 PM |
| Applet to Servlet to HTML | cisco_query | Software | 0 | 01-27-2008 05:32 PM |
| proble with html and javascript codes | hiralcp | Software | 0 | 12-19-2007 02:20 PM |
| Got my certificate in the mail - what a joke! | Jinkies | A+ Certification | 20 | 12-28-2003 08:38 PM |