0
我已经在vbscript中编写了一些代码来使用outlook自动发送邮件给收件人,一切正常,但我只有一个问题,我为邮件选择了什么格式身体在收信人的邮箱里变了。我用font color- blue and font face -calibri but it got changed into Times new roman without any color
。收件人的邮箱中的邮件格式在Outlook中被更改
任何解决方案?
Set MyApp = CreateObject("Outlook.Application")
Set MyItem = MyApp.CreateItem(0) 'olMailItem
With MyItem
.To = "[email protected]"
.Subject = ""
.ReadReceiptRequested = False
.HTMLBody = "<font size='3' face='Calibri' color='#151B54'>Hi,Whatever written here got changed into plain text.<font>"
.Attachments.Add "C:\Excels\"& objFso.GetFileName(objFile.path)
End With
MyItem.Display
End if
或者是否有任何设置,我必须改变发送邮件的前景?