I am using VB5 and tring to send an Email in HTML using CDO so that I can control formatting and colors etc. I can do it in Text just fine( but without the formating and colors).
I am new to HTML.
I need to bring in some variable fields into the Body but I can't find out how. In the HTML body I want to insert a client's "CompanyName, CompanyAddress" (variable fields) after the <body> and before the <p1>. My code is below:
Code:'**** With cdoMsg .To = MsgToEmailAddr .From = MsgFrom .Subject = MsgSubject .HtmlBody = "<html><body>" _ & "<p1><font size='7' face='times new roman' color='red'>HAPPY BIRTHDAY & "</body></html>" Set .Configuration = cdoConfig .Send End With '****
How do I do this?
Thanks for the help!!




Reply With Quote