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

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

MailMessage msgMailRespond = new MailMessage();
MailMessage msgMail = new MailMessage();
UTF8Encoding utf8 = new UTF8Encoding();
msgMail.BodyEncoding= utf8 ;
msgMail.To ="";
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;
msgMail.Body = strBody;

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