P
philippe
Hi,
I'm trying to send an html mail from a contact form with a button and VBS.
I get the followin error message when excuting the procedure :
incorrect argument 'body format'
Does anyone understand what I'm getting wrong ?
Thanks all,
Philippe
----- code ---
sub sendHtlmlMail_click()
strTitle = "wanabe html"
strMyBody = "<b>wanabe html message</b>"
Set myMail = Item.Application.CreateItem(olMailItem)
With myMail
..To = strRecipients
..Subject = strTitle
..BodyFormat = olFormatHTML
..HTMLBody = strMyBody
..display
End With
End Sub
------------------
I'm trying to send an html mail from a contact form with a button and VBS.
I get the followin error message when excuting the procedure :
incorrect argument 'body format'
Does anyone understand what I'm getting wrong ?
Thanks all,
Philippe
----- code ---
sub sendHtlmlMail_click()
strTitle = "wanabe html"
strMyBody = "<b>wanabe html message</b>"
Set myMail = Item.Application.CreateItem(olMailItem)
With myMail
..To = strRecipients
..Subject = strTitle
..BodyFormat = olFormatHTML
..HTMLBody = strMyBody
..display
End With
End Sub
------------------