We need to migrate our SQL database to Windows 2003 server. Support for CDONTS has been replace by CDOSYS. I've put some effort into recoding a subroutine from CDONTS to CDOSYS and am stuck on two points. - I can't get the subject like to display UNICODE, although the iMessage component claims it can be done, I haven't got UNICODE to render properly at all. - We need to "display" the user's From address while using our address as the actual From address. This avoids problems on some of our client's spam filters. Coding the actual from and display from are usually done something like this:.From = "<ouraddress@ourdomain.com>" & sFromAddressWhere the bracketed email is the from and anything else is the displayed name.but this is consistently displayed as:John+AEA-mydomain.com instead of John@mydomain.com (assuming sFromAddress = "John@mydomain.com"Here is the code that sends UNICODE text and supports Read Receipt and Importance.<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%><%Sub SendMail (sFromAddress, sToAddress, sCcAddress, sBccAddress, sSubject, sBody, boolReadReceipt, intImportance ) ' on error resume next Const cdoDispositionNotificationTo = "urn:schemas:mailheader:disposition-notification-to" Const cdoReturnReceiptTo = "urn:schemas:mailheader:return-receipt-to" dim cdoMessage Set cdoMessage = CreateObject("CDO.Message") With cdoMessage .BodyPart.charset = "unicode-1-1-utf-7" IF boolReadReceipt Then .Fields(cdoDispositionNotificationTo) = sFromAddress .Fields(cdoReturnReceiptTo) = sFromAddress End If ' Set the Importance: 0:Low, 1:Normal, 2:High .Fields("urn:schemas:httpmail:importance").Value = intImportance .Fields.Update .From = "<myprefix@anotherdomain.com>" & sFromAddress .ReplyTo = sFromAddress .To = sToAddress .Cc = sCcAddress .Bcc = sBccAddress .Subject = sSubject .textbody = sBody .Send End With Set cdoMessage = Nothing Set cdoConfig = Nothing End SubCall SendMail("myfrom@mydomain.com", "myto@mydomain.com", _"", "", "Test2 Subject - Read Receipt", _"Japanese: #26085;#26412;#12398;#20445;#35388;#24847;#35672;", true, 2 ) %>
Any thoughts that might assist in solving either of these two problems?