CDONTS HTML mails with images

Discussion in 'ASP General' started by Yan, May 5, 2004.

  1. Yan

    Yan Guest

    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 "response.write", it's OK, including images.
    Then I set this string variable to the CDONTS.Newmail object (body
    property), and I send the mail.

    The format settings are the following :
    MyCDONTSMail.BodyFormat=0
    MyCDONTSMail.MailFormat=0

    when I revcieve the mail, I have comments (<!----------------------------->)
    instead of image tags...
    does anybody know where it could come from ? A CDONTS parameter ? a server
    setting ? A firewall issue ?

    Thanks for your help,

    Yan.
    Yan, May 5, 2004
    #1
    1. Advertising

  2. Please see the last section of http://www.aspfaq.com/2474

    Also, remember that many clients are going to disable HTML (I can, and do,
    in both Outlook and Outlook Express).

    --
    Aaron Bertrand
    SQL Server MVP
    http://www.aspfaq.com/




    "Yan" <trey _at_ ifrance.[spamSucks]com> wrote in message
    news:...
    > 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 "response.write", it's OK, including

    images.
    > Then I set this string variable to the CDONTS.Newmail object (body
    > property), and I send the mail.
    >
    > The format settings are the following :
    > MyCDONTSMail.BodyFormat=0
    > MyCDONTSMail.MailFormat=0
    >
    > when I revcieve the mail, I have comments

    (<!----------------------------->)
    > instead of image tags...
    > does anybody know where it could come from ? A CDONTS parameter ? a server
    > setting ? A firewall issue ?
    >
    > Thanks for your help,
    >
    > Yan.
    >
    >
    Aaron Bertrand - MVP, May 5, 2004
    #2
    1. Advertising

  3. Yan

    Yan Guest

    Hi Aaron,

    Unfortunately, the people I'm programming this application for *want* HTML
    e-mails ...

    Thanks for the FAQ... As I seemed to have followed every step correctly, I
    took some info about my company SMTP server... and it appears that it's
    configured to remove <img> tags from e-mails !


    Bye,

    Yan.



    Aaron Bertrand - MVP wrote:
    > Please see the last section of http://www.aspfaq.com/2474
    >
    > Also, remember that many clients are going to disable HTML (I can,
    > and do, in both Outlook and Outlook Express).
    >
    >
    > "Yan" <trey _at_ ifrance.[spamSucks]com> wrote in message
    > news:...
    >> 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 "response.write", it's OK,
    >> including images. Then I set this string variable to the
    >> CDONTS.Newmail object (body property), and I send the mail.
    >>
    >> The format settings are the following :
    >> MyCDONTSMail.BodyFormat=0
    >> MyCDONTSMail.MailFormat=0
    >>
    >> when I revcieve the mail, I have comments

    > (<!----------------------------->)
    >> instead of image tags...
    >> does anybody know where it could come from ? A CDONTS parameter ? a
    >> server setting ? A firewall issue ?
    >>
    >> Thanks for your help,
    >>
    >> Yan.
    Yan, May 6, 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. Honky Tonker

    HTML e-mails

    Honky Tonker, Nov 9, 2004, in forum: HTML
    Replies:
    2
    Views:
    458
    Toby Inkster
    Nov 9, 2004
  2. Poppy

    CDONTS problem (attaching images)

    Poppy, Apr 21, 2004, in forum: ASP General
    Replies:
    1
    Views:
    89
    roger
    Apr 21, 2004
  3. Augustus
    Replies:
    6
    Views:
    167
    Augustus
    Apr 30, 2004
  4. haode
    Replies:
    0
    Views:
    95
    haode
    Aug 31, 2004
  5. Scott McNair

    CDO/CDONTS and Images

    Scott McNair, Dec 23, 2004, in forum: ASP General
    Replies:
    3
    Views:
    114
    Scott McNair
    Jan 3, 2005
Loading...

Share This Page