문제

I am sending emails via an html page using javascript and the outlook activex object (Outlook.Application) I am trying to change the format of the mail message to html but I don't know to what value I must set the .BodyFormat property. I've tried this:

objMail.BodyFormat = olFormatHTML;

but olFormatHTML is undefined; Can I only use this constant with VBScript?

도움이 되었습니까?

해결책

You can use HTMLBody property like this:

objMail.HTMLBody = "YOUR HTML CODE HERE";

More Info:

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top