Results 1 to 4 of 4

Thread: Send email with ASP.net application or MS SQL Server ?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2006
    Posts
    16

    Send email with ASP.net application or MS SQL Server ?

    Hello,

    I'm building an application with asp.net. And I need to send emails to selected customers.

    What is the best way to send email ? Is it by using System.Net Class or to send it by using MS Sql Server ?


    Thank you
    Paul

  2. #2
    Fanatic Member x-ice's Avatar
    Join Date
    Mar 2004
    Location
    UK
    Posts
    671

    Re: Send email with ASP.net application or MS SQL Server ?

    I'd use System.Net.Mail instead of SQL Server to send emails

  3. #3
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803

    Re: Send email with ASP.net application or MS SQL Server ?

    I do both...

    I made a CLR function that uses System.Net.Mail to send mail.
    So when writing a query like "select sendemail(email) from my_table" will actually send email to everyone in the table  LOL

  4. #4
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Send email with ASP.net application or MS SQL Server ?

    Hello,

    System.Net.Mail would be my choice as well. You can find lots of information about this here:

    http://www.systemnetmail.com/

    Bear in mind, classes within this namespace assume that you already have an SMTP Server that you can relay messages through.

    Gary

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width