asp classic - ASP embed image to CDO.Message email -


i'm using asp classic , cdo send email createmhtmlbody method. have couple of images in email of them static , not change of them change based on email content. of mail softwares icloud showing pictures attachment though have them full path url address. i've used addrelatedbodypart right show images in place thy have still show images in attachment well. want picture show in body of email not in attachment. 1 know how fix this? here example of code:

set mymail=createobject("cdo.message") mymail.subject= "subject of email" mymail.from= "from@site.com" mymail.to= "to@site.com" mymail.createmhtmlbody "http://www.mysite.com/email.html"  strimagepath = server.mappath("\") & "\images\mypic1.jpg" mymail.addrelatedbodypart strimagepath, "my_pic_1", 0  strimagepath = server.mappath("\") & "\images\mypic2.jpg" mymail.addrelatedbodypart strimagepath, "my_pic_2", 0  mymail.send set mymail=nothing 

thanks in advance time , help.

in order have images in emails, have use inline img tags in body of message fully-qualified path image (http://...). not treat them attachments.


Comments