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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xp_sendmail @message 1

Status
Not open for further replies.

daglugub37

Technical User
Oct 21, 2003
201
0
0
US
How do I control the format of message with xp_sendmail?

In particular how can I specify to start a new line.

I thought it was something like this but it is not working for me.

@message = ''message line 1''
@message = @messgae + ''message line 2''
 
Use Carriage Returns (Char(13))


Code:
Declare @Msg varchar(100)
Set @Msg = 'Line 1' + Char(10) + 'Line 2' 

exec xp_sendmail 'joeblow@biteme.com', @message = @Msg
 
perfect, thanks...awesome sample email address :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top