How to compose an html complex email?

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Sep 2005
Posts: 1
Reputation: springcity is an unknown quantity at this point 
Solved Threads: 0
springcity springcity is offline Offline
Newbie Poster

How to compose an html complex email?

 
0
  #1
Sep 8th, 2005
Does anybody know how to embed a web page in an email body? What softwares are needed? Thanks!! :rolleyes:
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 5
Reputation: v_ashwani is an unknown quantity at this point 
Solved Threads: 0
v_ashwani v_ashwani is offline Offline
Newbie Poster

Re: How to compose an html complex email?

 
0
  #2
Oct 26th, 2005
hey,

if you are sending emails using ASP.NET, then you need not worry about anything extra..just use the System.Web.Mail namespace, every setting is present there..for example look at this code below:

string MailServer=""; //Your mail server name
System.Web.Mail.MailMessage SendMail = new System.Web.Mail.MailMessage(); //create a new mail message SendMail.BodyEncoding=System.Text.Encoding.UTF8; //set encoding
SendMail.BodyFormat=System.Web.Mail.MailFormat.Html; //set Format..There are HTML and Text formats available
SendMail.To=mailTo; //to
SendMail.From=mailFrom; //from
SendMail.Subject=subject;//subject

SendMail.Body=mailBody; //mail Body..The complete HTML string of page
SendMail.Cc = mailCC;//CC
SendMail.Bcc = mailBCC;//BCC
System.Web.Mail.SmtpMail.SmtpServer=MailServer;//set mail server
System.Web.Mail.SmtpMail.Send(SendMail); //send email

Hope this helps
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for ASP.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC