send email from sql

  • hi

    how to send email from sql without using mail sql in sql server 2008?

  • samaneh.lashgari82 (9/9/2012)


    hi

    how to send email from sql without using mail sql in sql server 2008?

    without using mail sql in sql server 2008?

    Could not understand it. Can you explain a bit?

    Muthukkumaran Kaliyamoorthy
    https://www.sqlserverblogforum.com/

  • i want use sp for sending because when in search about this subject i found about create profile and account for data base mail...can i sent mail from sql without using data base mail?

  • samaneh.lashgari82 (9/9/2012)


    i want use sp for sending because when in search about this subject i found about create profile and account for data base mail...can i sent mail from sql without using data base mail?

    the profile and account you are talking about are the two core components of database mail.

    if you don't want to use THAT, which is of course the best solution that exists, you are going to have to either create your own CLR which sends mail via SMTP, or use xp_cmdshell and xp_OaCreate to call an existing smtp dll to to send an email.

    both of those solutions are poor replacements for the database mail feature.

    a last possibility is a completely stand alone application which polls a database table you would create for all the email parameters, and sends the emails for anything that is not yet marked as sent (which is what db mail does already)

    why do you want to avoid using database mail? it's extremely easy to setup and use, and because it's asynchronous, it will not slowdown or interfere with your other processes...a procedure will not wait for the email to complete sending.

    http://www.stormrage.com/SQLStuff/mail_gmail.gif">

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply