473,326 Members | 2,732 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

CDO/CDONTS and Images

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
Jul 22 '05 #1
3 1440
Scott McNair <sc**********@sfmco.takethispartout.com> wrote in
news:Xn*******************@207.46.248.16:
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.
Jul 22 '05 #2
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.

--
--Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com

"Scott McNair" <sc**********@sfmco.takethispartout.com> wrote in message
news:Xn*******************@207.46.248.16...
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

Jul 22 '05 #3
"Mark Schupp" <no******@email.net> wrote in
news:ed**************@TK2MSFTNGP11.phx.gbl:
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.
Jul 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: | last post by:
Hi Guys CDONTS works with all sites hosted on my test server bar one (which surely rules out a miscomputation of the Default SMTP server in IIS). I have tried uploading the file with make up...
29
by: | last post by:
I did a working code with CDONTS on NT4 Now I am testing is on w2k and it looks like objCDONTS.Send is completely ignored. I think is it ignored because it throws no errors, neither does the...
1
by: Dave Karmens | last post by:
<% Set theMail = server.CreateObject("CDONTS.NewMail") theMail.From = "user -at- domain -dot- com" theMail.To = "user -at- domain -dot- com" theMail.Subject = "Requested Form"...
2
by: Yan | last post by:
Hi everyone, I got a little problem while sending HTML e-mails with CDONTS. I generate my e-mail body without problems into a string variable. When I display it to the browser via a...
8
by: Boris | last post by:
Could someone please tell me if I can use CDONTS in W 2003 Server environment to send emails the same way it is used in W2K Server. I have heard that CDONTS is no longer available in W 2003 Server...
6
by: dave | last post by:
I am trying to generate an email from the webpage using code below, which works fine. However I want to be able to include some dyanmic data how do I go about it ?can anybody point me in the...
16
by: tshad | last post by:
I have both cdosys.dll and cdonts.dll on my W2K3 server. We have been told by our web authors that their asp code won't work on our machine and that we don't have CDONTS installed on our machine....
5
by: BaWork | last post by:
I have a web form where a client can select which site members to send an email to. This form is populated from the contents of the member table, so the form can have 0-x names listed on it...
7
by: Paul | last post by:
I have just started work on a system using CDONTS to mail out. Whilst this is fine on the server, my local development machine is using XP Pro with IIS5.1 installed. Is there a way I can get the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.