Insert a picture into an auto-generated e-mail


I use this body code to send automatic e-mails whenever a user registers on my site; how would I include code to send a picture using this code?  Thank you:
Protected Sub createuserwizard2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles CreateUserWizard1.ContinueButtonClick
Dim body As String


body = "<h3> New Email From: "


body += "Website.Com"


body += "</h3>"


body += CreateUserWizard1.UserName


body += "
"


body += CreateUserWizard1.Email


body += "
"


body += "<hr />"


body += "<hr />"


body += "Thank you for registering."

 
-1
kmj2384
5/4/2009 9:31:32 PM
📁 asp.net.web-forms
📃 93655 articles.
⭐ 6 followers.

💬 3 Replies
👁️‍🗨️ 3222 Views



 You can either attach the image inline with the email and insert it that way or just put the image file on your webserver and link to it with a normal <img> tag.

          
-1
rtpHarry
5/4/2009 10:32:04 PM

I inserted this line of code:
body += "<img src="images/bowlingcoupon.jpg" alt="" />"
and it says "end of statement expected."  What more do I need?
-1
kmj2384
5/5/2009 2:57:17 AM

body += "
<img src='http://absolute-Url-To-Image' />"

Bind GridView to Dynamically created DataTable | Bind DataTable to DropDownList

My Blog
-1
shahed
5/5/2009 7:01:09 AM
Reply: