Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

send email from sql Expand / Collapse
Author
Message
Posted Sunday, September 9, 2012 12:38 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Sunday, September 9, 2012 10:41 PM
Points: 2, Visits: 3
hi
how to send email from sql without using mail sql in sql server 2008?
Post #1356450
Posted Sunday, September 9, 2012 4:08 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Tuesday, July 8, 2014 8:54 AM
Points: 1,153, Visits: 4,620
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

Helping SQL DBAs and Developers >>>SqlserverBlogForum
Post #1356455
Posted Sunday, September 9, 2012 4:17 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Sunday, September 9, 2012 10:41 PM
Points: 2, Visits: 3
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?
Post #1356456
Posted Sunday, September 9, 2012 7:22 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 1:46 PM
Points: 12,876, Visits: 31,788
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.



Lowell

--There is no spoon, and there's no default ORDER BY in sql server either.
Actually, Common Sense is so rare, it should be considered a Superpower. --my son
Post #1356471
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse