Click here to Skip to main content
15,889,440 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<%
If Request.Form("submit") <> "" Then

Set myMail=CreateObject("CDO.Message")
myMail.Subject= "somthing something " 'This is the subject of the e-mail
myMail.To="ppatel@xyz.com" 'This is the e-mail address the e-mail will be delivered to
myMail.From=Request.Form("Email")
'myMail.HTMLBody = "img src="banner.jpg" width="120" height="40" />"  
myMail.TextBody= vbnewline & vbnewline & vbnewline & Request.Form("hello") & vbnewline & vbnewline & Request.Form("message") & vbnewline & vbnewline & "Name: " & Request.Form("Name") & vbnewline &  "E-Mail: " & Request.Form("Email") & vbnewline & "Extn: " & Request.Form("Phone") & vbnewline & "Location:" & Request.Form("office") & vbnewline & "Date:" & Request.Form("date") & vbnewline & vbnewline & Request.Form("thanks") & vbnewline & vbnewline & vbnewline & Request.Form("note")
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
'Name or IP of remote SMTP server
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") _
="IP Address"
'Server port
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") _
=25 
myMail.Configuration.Fields.Update
myMail.Send
set myMail=nothing
Response.Redirect("thankyou.html")

End If
%>
Posted

You need to use multipart e-mail and URI scheme "cid:". For further detail, please see my recent answer:
Sending HTML attachment with images[^].

—SA
 
Share this answer
 
give the path of your image like this

src="http://www.yourwebsite.com/images/banner.jpeg"


make sure the banner.jpeg must be in images folder of your website.

Thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900