CDONTS sending an email with attachments - ASP (Classical)

Posted on 2012-09-17
Last Modified: 2012-09-20

I want to send an email with attachments using CDONTS. But, Here is what i am using:

CDO_MAIL.AttachFile ""

In JavaScript we are doing:

image1.src = ""

The problem is - I do not have the exact image name. The above URL returns me an image. Can you please let me know how to resolve this ?

Question by:milani_lucie
    LVL 15

    Accepted Solution

    Based on the image path the you provide it seems there is code-behind that either generate image on the fly and loads that in memory or in cache location, if thatès the case would not be able to attach the same with your email.

    I would suggest to either do save of image on disk and use that path to attach the image, or send an HTML email and provide the same link È" to load the image in email sent.

    Good Luck

    Author Comment


    Can you please provide me sample code for - save of image on disk and use that path to attach the image ?

    Appreciate your help !!

    LVL 15

    Expert Comment

    Could you please provide with your code where you generate the image.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
    I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now