CDO/CDONTS and Images

S

Scott McNair

While working on changing our email page, I noticed that it wasn't
working - either the original or my changed page. The page would
acknowledge the email as being sent (i.e. no errors were reported, and
it moved to the next portion of the page).

I tracked the problem down to an <img> tag. No matter how I form it, it
crashes the mail message. I even pointed it to an image on Microsoft's
website, in case it was some bizarre permissions issue. I've tried it
with both CDO.Message and CDONTS.NewMail. Attached is the line of code
that's bombing out the mail message:

MyBody = MyBody & "<center><img src='http://[our website]/" & SuiteImg &
"' style='border:solid black 1px'></center>"

The SuiteImg variable validates to a valid image; if I do a
response.write of MyBody, the image displays fine. I also dropped off
the stylesheet, to see if that would help; it didn't.

Am I missing something obvious? I'm about to pull my hair out over
this.

Regards,
Scott
 
S

Scott McNair

Am I missing something obvious? I'm about to pull my hair out over
this.

Oh, a followup... I also tried working around it by setting a span:

<span style="width:600px;height:400px;border:solid black 1px;background:url
('http://path.to/image.jpg')">

It will show the span with the borders, but there is no background image in
it.
 
M

Mark Schupp

Is the email making it to the SMTP server (for MS server shut down the smtp
service and watch Inetpub\mailroot\Pickup)? If the email makes it that far
then open it and see what displays. Open with a text editor and look at the
code if necessary.
 
S

Scott McNair

Is the email making it to the SMTP server (for MS server shut down the
smtp service and watch Inetpub\mailroot\Pickup)? If the email makes it
that far then open it and see what displays. Open with a text editor
and look at the code if necessary.

Nope, it's not making it that far even... it's as though the ASP is
acknowledging the email but chooses not to send anything out with an <IMG>
tag.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top