Re: CDO Message Problem



One more interesting thing.

When I changed the "sendusing" attribute to "1" (pickup folder) the
generated eml message was NOT garbled (when opened with Outlook it
looked correct).

However changing the "sendusing" attribute to "2" (smtp server) the
message got corrupted.

I tried different smtp server to eliminate the server from possible
causes of the problem but it did not help. So, I assume, the CDOSYS is
the problem.


9ntw9 ra?e:
I used the code to send it to a directory, and checked the files ...

I had set ContentTransferCoding = "quoted-printable" in iBp3 (an
additional body part of my base iBp1), but had never set iBp1, so it
was sending in 7bit.

Hopefully this has fixed my problem!

p.s. to anyone attempting to use the code in the previous msg, I had to
change oConf.Update to oConf.Fields.Update to get it running.

I'll run some tests (with fingers crossed) and let everyone know if
this fixed it.

Thanks!

Anthony Jones wrote:
"9ntw9" <nathaniel.williams@xxxxxxxxx> wrote in message
news:1167944823.401987.233270@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thanks for your time,

Here is the code being used to send the mail:

Set objMail = Server.CreateObject("CDO.Message")
objMail.MIMEFormatted=true
objMail.From = sFrom
objMail.To = sTo
objMail.Subject= sSubject
objMail.HTMLBody = sTextBody
objMail.Send

I set the MIMEFormatted = True after reading an article that suggested
it would fix the problem, but no luck. (There was no apparent change)


Try this:-

Create an empty folder E.g. c:\temp\pickup

Now add this code after creating objMail :-

Dim oConf: Set oConf = objMail.Configuration
oConf.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing";)= 1
'Use pickup folder
oConf.Fields(http://schemas.microsoft.com/cdo/configuration/smtpserverpickup
directory") = _
"c:\temp\pickup"
oConf.Update

Now when you execute your code you should get an .eml file appear in pickup
folder. You can open this file in outlook express to see if it is mangled
before it's ever passed through a SMTP server. You can also open it in
notepad to see exactly what has been generated.

The header to the HTML body part should look something like this:-

------_=_NextPart_003_01C657E9.493172D2
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

.



Relevant Pages

  • Re: VMSMail problem
    ... which talks to MX as the smtp server. ... that the mail folder does not exist. ... If it's anything like IMAP interaction between VMS and Outlook, ... are either restore the mail directory from a backup or find out what ...
    (comp.os.vms)
  • Re: Exchange smarthost for SBC ADSL users
    ... I used their original username/password in attempting the smarthost ... Without seeing the specific's of your setup, There may be issues with the second connector or the first and second may not be interacting correctly...not sure. ... Outlook, with standard port 25 and no SPA/TLS. ... > The SMTP server in question is the one used in Outlook, ...
    (microsoft.public.windows.server.sbs)
  • Re: Exchange smarthost for SBC ADSL users
    ... I thought No IP was in fact a Dynamic DNS service. ... > Without seeing the specific's of your setup, There may be issues with the second connector or the first and second may not be interacting correctly...not sure. ... > Outlook, with standard port 25 and no SPA/TLS. ... >> The SMTP server in question is the one used in Outlook, ...
    (microsoft.public.windows.server.sbs)
  • Re: Exchange smarthost for SBC ADSL users
    ... Cris Hanna wrote: ... > Please do not respond directly to me, but only post in the newsgroup so all can take advantage ... > Outlook, with standard port 25 and no SPA/TLS. ... >> The SMTP server in question is the one used in Outlook, ...
    (microsoft.public.windows.server.sbs)
  • Re: Exchange smarthost for SBC ADSL users
    ... I use Time Warners smtp as my smarthost and it works fine. ... > Without seeing the specific's of your setup, There may be issues with the second connector or the first and second may not be interacting correctly...not sure. ... > Outlook, with standard port 25 and no SPA/TLS. ... >> The SMTP server in question is the one used in Outlook, ...
    (microsoft.public.windows.server.sbs)

Loading