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
或者是否有任何設置,我必須改變發送郵件的前景?