Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 266
  • Last Modified:

CDONTS sending an email with attachments - ASP (Classical)

Hi,

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

CDO_MAIL.AttachFile "http://SampleWebSite.com/Sample.asp?COMMAND=6"

In JavaScript we are doing:

image1.src = "http://SampleWebSite.com/Sample.asp?COMMAND=6"

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 ?

Thanks
0
milani_lucie
Asked:
milani_lucie
  • 2
1 Solution
 
pateljituCommented:
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 Èhttp://SampleWebSite.com/Sample.asp?COMMAND=6" to load the image in email sent.

Good Luck
0
 
milani_lucieAuthor Commented:
Hi,

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

Appreciate your help !!

Thanks
0
 
pateljituCommented:
Could you please provide with your code where you generate the image.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now