01.
MailMessage myMail =
new
MailMessage();
02.
03.
myMail.To =
"member@thaicreate.com"
;
04.
myMail.From =
"webmaster@thaicreate.com"
;
05.
myMail.Subject =
"My Subject"
;
06.
07.
myMail.BodyFormat = MailFormat.Text;
08.
myMail.Body =
"My Body & Description"
;
09.
10.
myMail.Attachments.Add(
new
MailAttachment(Server.MapPath(
"MyAttach/files1.txt"
)));
11.
myMail.Attachments.Add(
new
MailAttachment(Server.MapPath(
"MyAttach/files2.txt"
)));
12.
13.
SmtpMail.Send(myMail);
14.
15.
myMail =
null
;
16.
17.
this
.lblText.Text =
"Mail Sending."
;