好的,这是更新的版本......虽然仍然无法正常工作
NextHTMLBody = nextMessage.HTMLBody
NextHTMLBody = Replace(NextHTMLBody, "%Customer_Name%", bBodyName)
NextHTMLBody = Replace(NextHTMLBody, "%##%", formPage.Controls("LoanNumber1").Value)
With nextMessage
.HTMLBody = NextHTMLBody
.Subject = subjEmail
.To = sendTo
.Send
End With
-------------在这里它有效..不确定我做了什么不同
'Set body
NextHTMLBody = nextMessage.HTMLBody
NextHTMLBody = Replace(NextHTMLBody, "%Customer_Name%", bBodyName)
NextHTMLBody = Replace(NextHTMLBody, "%##%", formPage.Controls("LoanNumber1").Value)
With nextMessage
.HTMLBody = NextHTMLBody
'.Body = NextHTMLBody
.Subject = subjEmail
.To = sendTo
'.Send
.Display
End With