| | |
Sending an acknowledgement via Email while storing data in ASP.NET1.0
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jun 2007
Posts: 14
Reputation:
Solved Threads: 0
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");
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");
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.
One is as though nothing is a miracle.
The other is as if everything is.
![]() |
Similar Threads
- How can I send a Crystal Report to Email through Active Server Pages (ASP)? (ASP)
- ASP: Sending a HTML form to an email address (ASP)
- asp:repeater in a form? (ASP.NET)
- transfer data from an asp .net page into a javasscript script (ASP.NET)
- Storing data into an Array (C)
Other Threads in the ASP.NET Forum
- Previous Thread: asynchronous dropdownlist any idea
- Next Thread: asp.net and frames
| Thread Tools | Search this Thread |
.net activexcontrol advice ajax alltypeofvideos appliances asp asp.net bc30451 beginner bottomasp.net box browser button c# cac checkbox class click commonfunctions control countryselector dataaccesslayer database datagridview datagridviewcheckbox datalist deployment development dgv dialog dropdownlist dynamic dynamically edit embeddingactivexcontrol expose fileuploader fill findcontrol flash formatdecimal formview gridview gudi iframe iis javascript listbox login microsoft mono mouse mssql news novell numerical opera panelmasterpagebuttoncontrols problem radio redirect registration relationaldatabases reportemail save schoolproject search security sessionvariables silverlight smartcard smoobjects software sql sql-server sqlserver2005 ssl suse textbox tracking treeview unauthorized validatedate validation vb.net video videos vista visualstudio vs2008 web webapplications webdevelopemnt webdevelopment webprogramming webservice wizard xsl youareanotmemberofthedebuggerusers





