CDO/CDONTS and Images

Discussion in 'ASP General' started by Scott McNair, Dec 23, 2004.

  1. Scott McNair

    Scott McNair Guest

    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
     
    Scott McNair, Dec 23, 2004
    #1
    1. Advertising

  2. Scott McNair

    Scott McNair Guest

    Scott McNair <> wrote in
    news:Xns95C88BA88BE67sfmco@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.
     
    Scott McNair, Dec 23, 2004
    #2
    1. Advertising

  3. Scott McNair

    Mark Schupp Guest

    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" <> wrote in message
    news:Xns95C88BA88BE67sfmco@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
     
    Mark Schupp, Dec 23, 2004
    #3
  4. Scott McNair

    Scott McNair Guest

    "Mark Schupp" <> wrote in
    news::

    > 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.
     
    Scott McNair, Jan 3, 2005
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Lasse Edsvik

    specify user+pwd in CDO/CDONTS

    Lasse Edsvik, Dec 12, 2003, in forum: ASP General
    Replies:
    11
    Views:
    240
    Aaron Bertrand - MVP
    Dec 15, 2003
  2. coenve

    CDO/CDONTS and truncated attachments

    coenve, Jun 3, 2004, in forum: ASP General
    Replies:
    2
    Views:
    134
    HernĂ¡n Castelo
    Jun 3, 2004
  3. DigitalRick
    Replies:
    6
    Views:
    567
    Ray Costanzo [MVP]
    Jul 29, 2005
  4. Noozer

    CDO + CDONTS email routine?

    Noozer, Jul 30, 2005, in forum: ASP General
    Replies:
    1
    Views:
    136
    Egbert Nierop \(MVP for IIS\)
    Aug 2, 2005
  5. Replies:
    6
    Views:
    184
Loading...

Share This Page