asp_cdo thread: Images aren't embedded anymore even with CdoMHTMLFlags set to CdoSuppressNone
Hi again...
I am having a problem... When I send an email using the .CreateMHTMLBody
method, the images referenced in the HTML file are not automatically
embedded in the email (even if CdoSuppressNone is set as the CdoMHTMLFlags
argument). Why would this be? I think some setting in the Metabase must
have something to do with it, as previously by some fluke I had my dev
machine configured correctly, and the images were automatically embedded.
Here is the code used to send an email as well as set and load a
configuration object... (or is there something I am missing in the fields
to set wether to do this or not?)
'--------------------------------------------------------------------------
Function setcfg()
Set pdtCfg = Server.CreateObject("CDO.Configuration")
With pdtCfg.Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = "Some-SMTP-Server"
.Item(cdoSMTPAuthenticate) = cdoAnonymous
.Item(cdoSMTPConnectionTimeout) = 20
.Update
End With
Set setcfg = pdtCfg
End Function
'--------------------------------------------------------------------------
objMsg.Configuration = setcfg()
objMsg.CreateMHTMLBody "file://" & Server.Mappath
("templates/templatefile.html"),
CdoSuppressNone
'--------------------------------------------------------------------------
Any help would be greatly appreciated!
Thanks in advance,
Pierre du Toit,
Freelance Web Developer
greywacke@f...
lythera@h...