sending image thru email + CDO

Discussion in 'ASP General' started by dave, Jun 8, 2004.

  1. dave

    dave Guest

    Hi
    I'm using CDO message to send email thru asp code.
    Below is sample code...

    body = body & "<tr><td colspan=2><img
    src=images/contacts_5.jpg></td></tr>"

    I'm just confused why its not showing images in email
    body? It just shows red cross mark in mail body...

    Any help would be appreciated...
    Thanx
    dave, Jun 8, 2004
    #1
    1. Advertising

  2. dave

    dlbjr Guest

    Source must be something like this:

    <IMG SRC='http://your_domain/site_name/images/contacts_5.jpg'>

    Remember it's an email the full path is unknown.

    'from dlbjr

    'Unambit from meager knowledge of inane others,engender uncharted sagacity.
    dlbjr, Jun 8, 2004
    #2
    1. Advertising

  3. (a) the e-mail client has no idea where images/contacts5.jpg is. Try
    putting that image tag in a file on your desktop. Do you think the browser
    can read your mind, and know that you meant
    http://www.yoursite.com/images/contacts5.jpg? Of course not. You have to
    tell it where to find the image.

    (b) many e-mail clients show red x's because the default setting is to NOT
    download images from the web, because these are often used to transmit
    confirmation back to sniffers. (And further still, many people have
    disabled HTML e-mail altogether ... e.g. me.)

    (c) to avoid the whole web bug issue see http://www.aspfaq.com/2474 for
    instructions on embedding an image into an e-mail, rather than using links.

    --
    http://www.aspfaq.com/
    (Reverse address to reply.)




    "dave" <> wrote in message
    news:1940d01c44cf0$cc40fe50$...
    > Hi
    > I'm using CDO message to send email thru asp code.
    > Below is sample code...
    >
    > body = body & "<tr><td colspan=2><img
    > src=images/contacts_5.jpg></td></tr>"
    >
    > I'm just confused why its not showing images in email
    > body? It just shows red cross mark in mail body...
    >
    > Any help would be appreciated...
    > Thanx
    >
    Aaron [SQL Server MVP], Jun 8, 2004
    #3
    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. THTB
    Replies:
    0
    Views:
    173
  2. Jay

    CDO not sending email

    Jay, Jan 15, 2004, in forum: ASP General
    Replies:
    5
    Views:
    115
  3. Amit Shinde

    Sending Email thru ASP

    Amit Shinde, Feb 28, 2004, in forum: ASP General
    Replies:
    2
    Views:
    91
    Bullschmidt
    Mar 2, 2004
  4. Max Williams
    Replies:
    3
    Views:
    157
    Robert Klemme
    Jan 6, 2009
  5. Replies:
    4
    Views:
    150
    Dr.Ruud
    May 3, 2006
Loading...

Share This Page