dbTalk Databases Forums  

Mail Profile

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Mail Profile in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
MS User
 
Posts: n/a

Default Mail Profile - 12-09-2004 , 01:29 PM






SQL 2K

I just developed a DTS and want to add a 'Send Mail Task'.
In 'Send Mail Task' the drop-down for profle name is not displaying the
Profile Name configured under SQL Mail.
I know SQL Mail is confugured under a different account, my question is - As
a developer how can I set this task ??


Thanks
MS User



Reply With Quote
  #2  
Old   
Robert Davis
 
Posts: n/a

Default RE: Mail Profile - 12-09-2004 , 03:21 PM






Send Mail Tasks are imperfect, so I never use them. Instead, do an Execute
SQL task that executes xp_sendmail

Robert.

"MS User" wrote:

Quote:
SQL 2K

I just developed a DTS and want to add a 'Send Mail Task'.
In 'Send Mail Task' the drop-down for profle name is not displaying the
Profile Name configured under SQL Mail.
I know SQL Mail is confugured under a different account, my question is - As
a developer how can I set this task ??


Thanks
MS User




Reply With Quote
  #3  
Old   
Darren Green
 
Posts: n/a

Default Re: Mail Profile - 12-09-2004 , 07:08 PM



In message <F4DBC765-4503-458E-9157-4E24549B516A (AT) microsoft (DOT) com>, Robert
Davis <RobertDavis (AT) discussions (DOT) microsoft.com> writes
Quote:
Send Mail Tasks are imperfect, so I never use them. Instead, do an Execute
SQL task that executes xp_sendmail

Robert.

"MS User" wrote:

SQL 2K

I just developed a DTS and want to add a 'Send Mail Task'.
In 'Send Mail Task' the drop-down for profle name is not displaying the
Profile Name configured under SQL Mail.
I know SQL Mail is confugured under a different account, my question is - As
a developer how can I set this task ??


Thanks
MS User
....and one of the reasons why Send Mail is "imperfect", although my term
would be a bit stronger, is that they use MAPI. A MAPI profile is held
as part of the NT user profile, so when developing on your desktop
machine you can only see your personal profile. On the server when you
run it as a scheduled package for example it can only see the profile
for the SQL Server Agent service account, normally what you would use
for SQL Agent Mail.

DTS is client side, and MAPI is profile specific so unless you are
logged onto the server as the service account you created the SQL Mail
profile under this will not be what you suggest. As for the solution, I
second the Exec SQL idea, although I would always use xp_smtp_sendmail
(http://www.sqldev.net). xp_sendmail also uses MAPI is and that is just
asking for trouble in my opinion.

--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.