View Single Post
  #4 (permalink)  
Old September 15th, 2004, 02:53 PM
yoord yoord is offline
Friend of Wrox
 
Join Date: May 2004
Location: Ardabil, Ardabil, Iran.
Posts: 120
Thanks: 0
Thanked 1 Time in 1 Post
Default

you can send a mail using your asp.net page for confirmation and using hosted site smtp email engine .
using tis code you can send email using asp.net
include this directive to your page.
Code:
<%@Import Namespace="System.Web.Mail" %>

MailMessage msgMailRespond = new MailMessage();
MailMessage msgMail = new MailMessage();
UTF8Encoding utf8 = new UTF8Encoding();
msgMail.BodyEncoding= utf8 ;
msgMail.To ="anyone@anyserver.com";
msgMail.From =from.Text;
msgMail.Subject =strSubject.Text;
msgMail.BodyFormat = MailFormat.Html;
string strBody="<div style=\"font-family:tahoma,zar,arial,yagut ,font-size:14\">"+strMessageBody.Text;
 strBody+="<br></div>";
msgMail.Body = strBody;
SmtpMail.Send(msgMail);
YoOrD.

Beauty Is not on the face
Beauty is on the heart
--<<Ghibran Khalil>>--