Hi,
I have a table customer with fields customer name,address,e-mail.When customer submits a registration form,how to send an automatic email to the id provided by the customer.I have read few posts where they provided solutions to use a procedure or job scheduler.
Can we implement it without using the stored procedures?
Loading
Vishal GilbilePosted Mar 14, 2013, 1:39 AM
Satyapriya NayakPosted Mar 13, 2013, 11:59 PM
brunda kPosted Mar 13, 2013, 11:55 PM
System.Web.Mail.MailMessage message=
new System.Web.Mail.MailMessage();
message.From="from e-mail";
message.To="to e-mail";
message.Subject="Message Subject";
message.Body="Message Body";
System.Web.Mail.SmtpMail.SmtpServer="SMTP Server Address";
System.Web.Mail.SmtpMail.Send(message);
System.Web.Mail.SmtpMail.SmtpServer="SMTP Host Address";
System.Web.Mail.SmtpMail.Send("from","To","Subject","MessageText");
After Database Entry Registered user we can send the e-mail without stroedprocedure using C# code