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

brunda kRank #3,804 · 389 reputationPosted Mar 13, 2013, 7:55 PM EDT
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
Satyapriya NayakRank #47 · 31.5K reputationPosted Mar 13, 2013, 7:59 PM EDT
Vishal GilbileRank #268 · 9.4K reputationPosted Mar 13, 2013, 9:39 PM EDT