Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Xp_sendmail

Status
Not open for further replies.

tlaksh

Programmer
Feb 25, 2001
98
US
can i pass reciepient name in xp_sendmail procedure as a value from a variable instead of hardcoding the value

Thanks

Lakshmi

 

Yes. In T-SQl you would do the following assuming the variable name is @recpt.

xp_sendmail @recipients = @recpt,
@message = 'message',
@subject = 'subject',

In VB, ASP or other languages you need to evaluate the variable in your code before executing the query that executes xp_sendmail. Terry
------------------------------------
Blessed is the man who, having nothing to say, abstains from giving us worthy evidence of the fact. -George Eliot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top