Kram
05-04-2005, 07:53 PM
i need to use the xp_sendmail stored proc, but i get the worst of formatting when i do it. Here is my command:
Exec Master.dbo.xp_sendmail
@recipients = 'email@address.com',
@query = 'Select * from table1',
@subject = 'SQL MAIL TEST',
@message = 'testing the xp_mail control',
@width = 300
the formatting i get is just bizare, there is about a million blank lines followed by heaps of dashes (----------------) etc...
any ideas?
Exec Master.dbo.xp_sendmail
@recipients = 'email@address.com',
@query = 'Select * from table1',
@subject = 'SQL MAIL TEST',
@message = 'testing the xp_mail control',
@width = 300
the formatting i get is just bizare, there is about a million blank lines followed by heaps of dashes (----------------) etc...
any ideas?