SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


send email from sql


send email from sql

Author
Message
samaneh.lashgari82
samaneh.lashgari82
Forum Newbie
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: General Forum Members
Points: 2 Visits: 3
hi
how to send email from sql without using mail sql in sql server 2008?
muthukkumaran Kaliyamoorthy
muthukkumaran Kaliyamoorthy
SSCommitted
SSCommitted (2K reputation)SSCommitted (2K reputation)SSCommitted (2K reputation)SSCommitted (2K reputation)SSCommitted (2K reputation)SSCommitted (2K reputation)SSCommitted (2K reputation)SSCommitted (2K reputation)

Group: General Forum Members
Points: 1973 Visits: 4940
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

samaneh.lashgari82
samaneh.lashgari82
Forum Newbie
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: General Forum Members
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?
Lowell
Lowell
One Orange Chip
One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)

Group: General Forum Members
Points: 27885 Visits: 39919
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

--
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!

Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search