Sending an acknowledgement via Email while storing data in ASP.NET1.0

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

Join Date: Jul 2007
Posts: 1
Reputation: Jaya.matt is an unknown quantity at this point 
Solved Threads: 0
Jaya.matt Jaya.matt is offline Offline
Newbie Poster

Sending an acknowledgement via Email while storing data in ASP.NET1.0

 
0
  #1
Jul 15th, 2007
Hi all,
I am new in ASP.NET.What coding I have to use to send an acknowledgement via Email to the concerned person while storing data in the database using ASP.NET1.0?Pls help........


Thanks

Jaya
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 14
Reputation: sasindagi is an unknown quantity at this point 
Solved Threads: 0
sasindagi sasindagi is offline Offline
Newbie Poster

Re: Sending an acknowledgement via Email while storing data in ASP.NET1.0

 
0
  #2
Jul 17th, 2007
first do the insertion of data into database at final send email with some msg. u need to
1> add reference if using 1.1 use cdonts lib 2.0 cdosys and smtp lib
2> add namespace using system.web.mail (1.1) system.net.mail(2.0)
3> take a string varible
string userInfo = string .Empty;
string AppEMailFrom = "jaya@matt.com";\\ receving person gets the info who had mailed.
4>userInfo = "Hi,<br>click the below link ,to confirm your registration blab blab\n"+"<br>";
5>MailMessage msg = new MailMessage();
msg.From = new MailAddress("www.jayamatti@xyz", "developer");
msg.To.Add(new MailAddress(Txtemail .Text));// mail to be send
msg.Subject = "hi";
msg.Body = userInfo;
msg.IsBodyHtml = true;
msg.Priority = MailPriority.High;// recieve high pririoty
SmtpClient c = new SmtpClient("mail.xyz.com");// name of u r smpt server
c.Send(msg);
Response.Write("Mail has been sent");
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 812
Reputation: arjunsasidharan is on a distinguished road 
Solved Threads: 13
arjunsasidharan's Avatar
arjunsasidharan arjunsasidharan is offline Offline
Practically a Posting Shark

Re: Sending an acknowledgement via Email while storing data in ASP.NET1.0

 
0
  #3
Jul 19th, 2007
Can you please use code tags. Read this
There is just two ways to live your life.
One is as though nothing is a miracle.
The other is as if everything is.
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



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC