Loading ...

Which one is the best method to send auto generated email ?

Who is online?  0 guests and 0 members
home  »  forums   »  asp.net topics   »  architecture   » Which one is the best method to send auto generated email ?

Which one is the best method to send auto generated email ?

Posts under the topic: Which one is the best method to send auto generated email ?

Posted: 9/7/2010

Lurker 219  points  Lurker
  • Joined on: 7/17/2010
  • Posts: 10

Hi

I have seen 2 method to send email. One is from using C# or Vb.net code and other is using Sql server. In my project, there is Trail Registration page and i have to send auto generated Email to user before the Expiry date. I have used the "sending Email using C#".  Is the good method to do this task ? or should i have to do using sql server database ?

 

Regards

Chandradev

 


Posted: 9/28/2010

Lurker 80  points  Lurker
  • Joined on: 9/14/2010
  • Posts: 8

hi Chandradev,

i think it's ok. you should try to use windows services to send auto generated mail based on Expirydate


Posted: 10/14/2010

Lurker 25  points  Lurker
  • Joined on: 6/23/2010
  • Posts: 1
  Answered

Write a stored procedure and use sql job to send an email.


Posted: 10/15/2010

Lurker 219  points  Lurker
  • Joined on: 7/17/2010
  • Posts: 10

Yes. I think sending email using strore procedure will be faster as compare to C# method.


Posted: 10/15/2010

Professional 8505  points  Professional
  • Joined on: 5/3/2010
  • Posts: 391
  Answered

chandradev said:

user="chandradev prasad"]

Yes. I think sending email using strore procedure will be faster as compare to C# method.

Sayed Ali's method is very good.

Check this tutorial for step by step guide

http://www.howtogeek.com/howto/database/sending-automated-job-email-notifications-in-sql-server-with-smtp/

However, if you want to make changes in the future, you will need to edit the Job in the SQL Server Agent. Once the application is deployed, the client might not need to do that manually. Therefor, think to make it as much flexible as you can and provide ways for the Administrator to make manual configuration. Anyway, you might not need this depending of how you want to implement the feature ;).

Cheers,
Hajan


Page 1 of 1 (5 items)