September 9, 2012 at 12:38 am
hi
how to send email from sql without using mail sql in sql server 2008?
September 9, 2012 at 4:08 am
samaneh.lashgari82 (9/9/2012)
hihow 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/
September 9, 2012 at 4:17 am
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?
September 9, 2012 at 7:22 am
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
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply