.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old May 8th, 2002, 02:24 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
System.Web.Mail embedding images

<i><b>Originally posted by : Gil (gil@afsi.net)</b></i><br />I am looking for a way to embed an image into a HTML email.. I was able to this in Classic ASP using CDONTS. Any help would be appreciated.<br />Thanks

Reply With Quote
  #2  
Old May 15th, 2002, 04:52 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Kristof (kristof@gsc.be)</b></i><br /><%@ Import Namespace="System.Web.Mail" %><br /><script language="c#" runat="server"><br />private void Page_Load(object sender, System.EventArgs e)<br />{<br /><br /> String lcNaam = Request.Form["name"];<br /> String lcMail = Request.Form["email"];<br /> String lcMessage = Request.Form["message"];<br /> <br /> string Tabel = "<table><tr><td><img src='http://www.Xolutions.be/oim/images/Efront.jpg'></td></tr>";<br /> Tabel += "<tr><td valign=top width=343 height=257 Background='http://www.Xolutions.be/oim/images/Eback.jpg'><table cellpadding=5>";<br /> Tabel += "<td width=170 valign=top><font face=Verdana Size=2><b>" + lcMessage + "</b></font></td><td> </td></table></td></tr></table>";<br /> <br /> <br /> MailMessage msg = new MailMessage();<br /> <br /> msg.To = lcMail;<br /> msg.From = lcNaam;<br /> msg.Subject = "You have received an Ecard from " + lcNaam;<br /> msg.Body = Tabel;<br /> msg.BodyFormat = MailFormat.Html;<br /> <br /> SmtpMail.Send(msg);<br />}<br /></script>

Reply With Quote
  #3  
Old May 16th, 2002, 11:45 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Dr. Heiko Voss (hvoss@skm-informatik.com)</b></i><br />Nice example, but the images are not embedded within the html email. These are usual jpeg urls!

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > System.Web.Mail embedding images


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway