Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 xp_sendmail

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-07-11 : 06:19:44
Rimma writes "Hi, I call xp_sendmail from another stored procedure passing xp_sendmail three variables from the calling procedure:

exec master.dbo.xp_sendmail @recipients=@SendTo, @message= @Msg, @Subject= @MailSubject

But I receive the following error message:
"Server: Msg 18031, Level 16, State 1, Line 0
xp_sendmail: Could not resolve recipient".

When I passed the same info that was stored in those variables manually, the mail was sent to a list of recipients specified.


Please advise
Thank you, Rimma Gutman"
   

- Advertisement -