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 += "<br /> "

body += CreateUserWizard1.Email

body += "<br />"

body += "<hr />"

body += "<hr />"

body += "Thank you for registering."

5/4/2009 9:31:32 PM 93655 articles. 6 followers. Follow

3 Replies

Similar Articles

[PageSpeed] 13
Get it on Google Play
Get it on Apple App Store

 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.

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?

5/5/2009 2:57:17 AM

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

Bind GridView to Dynamically created DataTable | Bind DataTable to DropDownList

My Blog
5/5/2009 7:01:09 AM

Similar Artilces:

Send e-mail with web form values (
I'm sure this is very simple but;I have a form with numerous (<50) textbox controls and related Label controls; ie: <asp:Label ID="Label1" runat="server" Text="Last Name: "></asp:Label> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>When the form is submitted I want to loop through each label control and textbox control and get their Text values for the e-mail without specifying each control. Anyone have suggestions on the best way to do this?Any assistance appreciated greatly!   Here is a solution for you in

Web form sent to e-mail address
I want a web form to send the information typed into the fields, to an e-mail address. I'm not sure how the form attributes must be. Like "method" and "action" etc. Just a basic web form with text fields etc and a Submit button at the bottom. And the Submit button... which attributes is needed? Button Events in the code-behind? (I only understand C#, btw) <form id="form1" runat="server"> <div> <asp:TextBox ID="TextBox1" runat="server" />  <asp:Button ID="Button1" runat=&quo...

E-mail form data using authenticated smtp relay (
Hi, out there, I have a set of forms on my site that work fine e-mailing the data back to me with the free e-mail frommy current host, whose smtp relays do not require authentication.  However, there's a tight limit on the number of relays I can have a day.  Due to traffic, I would like my forms now to reference another "From" e-mail, from host with unlimited smtp relays.  Unfortunately, their e-mail requires authentication, and having combed these posts for hours, as well as others, I can't find a working solution to my problem.  It's more...

sending e-mails from web form
hi i have a website, in which users can register and when they register, they are automatically sent an e-mail to confirm their registration, but when i try to send the e-mail an error message apppears saying "transport failed to connect to the server" even though the smtp server is active in the IIS, can anyone please help with this, my code for the e-mail is below , thank you in advance Dim sMsg as String sMsg+="Hi there - here's the information I entered in the form." & vbcrlf sMsg+="Your username:" & frmuid.Text & vbcrlf sMs...

Automatic E-mail from web form
Hi, I am trying to generate automatic e-mail. I am using following code snippet . ----------------------------------------------------- Dim myMessage As New MailMessage() myMessage.From = "" myMessage.To = "" myMessage.Subject = "New Message!" myMessage.Body = "Hello World!" myMessage.BodyFormat = MailFormat.Text SmtpMail.SmtpServer = "localhost" SmtpMail.Send(myMessage) ------------------------------------------------------------...

E-mail sent from web form
Hello there,From all of the online tutorials I have seen, getting an e-mail sent with the contents of a completed form from a web page is fairly simple. I have generated my form, and when the submit button is clicked, I want the data to be sent to an e-mail address. But I think I'm going wrong with the server details. I need somebody who is very kind to explain to me as simply as possible what I need to do. Do I need IIS installed on my machine? If so, I have XP Home edition and it doesn't appear in my list on the 'Add Windows Components' thingy. What should I do about that??I'd really appre...

Sending e-mail from a web form
Hi, Can anyone please direct me to an easy to understand Description or Video tutorial on how to send and e-mail from a web form?  I am looking for a straight forward description/example using C# and VISUAL WEB DEVELOPER 2005 EXPRESS EDITION. The descriptions and forum discussions that I have managed to find, just confuses the daylight out of me... Surely it can not be that difficult?! Thanks! Regards Jan Try this article.Darrell Norton, MVPDarrell Norton's BlogPlease mark this post as answered if it helped you! hi, here are some resources for you to refer to ht...

Implementing .Net Form into an web form, can this be done
I am new here, but have been searching for a while, and may not have the correct lingo to find what I am looking for.  I am tasked with implementing a .exe application that was writen vb6 then converted to .net into a new website my team is developing. The idea is to put each of the 3 different forms in this .exe application of 3 different .aspx pages. I have attempted multiple things to get this into the page and even started to just rewrite it as an web form, but even then I can't reuse any of the code since the System.Web.UI.Page doesn't inherit the sa...

.net 2 beta 2 - System.Net.Mail
Hi guysI'm using the System.Net.Mail namespace in .net version 2, beta 2, to send out some HTML formatted e-mails.However, for some reason when the e-mail are sent out some of the full stops from the e-mail are removed.For example, part of the e-mail contains this code<img src="" alt="">But this is what the code is like when the e-mail source code is viewed<img src="" alt="">Is this a known bug in beta 2? If so, where can I view a list of known bugs an...

How do I send the contents of a web form by e-mail ?
Hi, I have just started using Visual Studio Express 2008 to develop a web site. I downloaded a template to get me started and have managed to get the site looking more or less how I want it.   But I am stuck with my Contact Us page. The template accepted data into a form and then when the submit button was clicked sent the data to a database. (I assume!). The code is as follows:   div id="contactForm"> <fieldset style="width:300px;">   <legend>Who you are</legend>   <asp:Label ID="label1" runat="serve...

how can i send an e-mail from my web form?
hello all can anybody help me with sending e-mails from my web form plzzzzzzz i really need it ....i have some code but it doesnt seem to work....what do i have to do? thanx in advanceAhmed Baban Take a look at the System.Web.Mail class. If you post the code you are using, someone might be able to spot the problem. It might not be a problem with the code, but with your smtp server. Are you using the default Windows smtp service to send your messages? Jared - Livingston Family WebsiteTest/Demo site - hi again ive already solved the...

Dynamic Generation of Web Forms in
I am new to c# and studio as such and am seekin help for my project. It deals with generating webforms at runtime by takin in inputs from the user. The user will input no. of webfroms to be generated and all the attributes he want in them. I have got the datamodel right for this where all the info by the user is stored in sql server database. During runtime my application should read it from that database and based upon that generated these .aspx forms which can be posted online for use. I think it would help if you explained what the application would accomplish. It sounds like yo...

Read Reciepts on .Net Generated E-Mails?
Hello, I'm writing an application that sends e-mails to users to notify them of an event. I'm sure i'm not the only person here who is sick of users trying to tell them that they didn't recieve an e-mail (as opposed to the other 100 people who did). I was wondering if there is a simple way of adding a read reciept (just like you can do in MS Outlook) to an e-mail? Many Thanks"There is no such thing as a bug, just an unexpected feature." try: Although the top section is for their component, take a look at the...

invoke mail form of outlook express form web form
how do i invoke a mail form from a web page email link. i have to invoke the outlook express mail form to send a mail to the email id of the person email link on my web page. Hi, It's just simple. Please give a hyperlink to that mailid as show below with the mailto: <a href=''>Click here to send mail</a> Thanks & Regards, Sriram.K...

Web resources about - Insert a picture into an auto-generated e-mail -

Facebook Page Admins Can Upload Images For Posts With External Links, Rather Than Using Auto-Generated ...
... to upload images to accompany external links they are posting on their pages, rather than being limited to the default, auto-generated thumbnail ...

Auto-generated message: (someones name) has left this conversation and will no longer see your messages ...
Well I figured out how to stop it for me, do not leave the conversation, instead open the conversation and go to the Actions tab, click "Report ...

Facebook Page Admins Can Upload Images For Posts With External Links, Rather Than Using Auto-Generated ...
... to upload images to accompany external links they are posting on their pages, rather than being limited to the default, auto-generated thumbnail ...

Google Fusion Tables adds auto-generated map legends
Google's tool for joining and visualizing multiple data tables has finally added auto-generated legends to its maps.

Amazon Blocks The Sale of Gross, Auto-Generated "Keep Calm and Rape Her" Shirts
The whole "Keep Calm and [X]" trend has been a fun little meme for merchandisers everywhere, ever since the now-public domain WWII slogan was ...

Watch for Auto-Generated Email Addresses (and Four Other Signs) to Avoid Craigslist Scams
We all know Craigslist, while handy, is home to more than a few scammers—even if you're searching for an apartment. Chris Morran over at the ...

Auto-Generated Vs. Pro-Designed Display Ads: How Much Does Creative Matter?
Can auto-generated, template based display ads perform as well as professionally designed ads? That’s the basis of a new test by Dispop, a self-serve ...

Google’s Cutts: Auto-Generated Content & Search Results In Our Index Violate Our Guidelines
... Matt discussed a pretty obvious spam tactic that Google will take action on. The question was Does Google take action on automatically generated ...

Matt Cutts on Auto-Generated Content: Google Will Take Action
Matt Cutts on Auto-Generated Content: Google Will Take Action Search Engine Watch The latest webmaster help video from Google's Distinguished ...

Google: Using Google Translate Is A Form Of Auto-Generated Content Spam
... in black and white in a Google Webmaster Help thread that using Google Translate to translate your whole site, is the same thing as "auto-generated ...

Resources last updated: 12/28/2015 10:54:16 PM