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

CDO Mail - HTML Body

Status
Not open for further replies.

MikeMcKeown

Programmer
Apr 1, 2003
69
GB
I have a CDO stored procedure which works and send out emails. However I would now like the body of my email to be HTML so that I can apply formatting to the text.

However I am unsure how to set up the HTML tags and where to put them. I have change the main SP to this:-

EXEC @hr = sp_OASetProperty @object, 'TextBody', @body
EXEC @hr = sp_OAMethod @object, 'Send', NULL

Currently I am doing the following:-


exec sp_cdo_sendmail @rec, 'sender address', @subject , @body

These are variables which are set to a field from the database.

How do I create the @body to be HTML?

Thanks in advance,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top