我有以下部分的代碼,這是自動回覆系統im開發的一部分。據我瞭解,應該使用換行符格式化電子郵件的正文,但是,如附加的屏幕截圖所示,它沒有。有人可以指出oput哪裏會出錯?使用VBA格式化電子郵件正文
With NewForward
.Subject = "'TEST' Hazard report reciept number: HAZ" & IDnumber
.To = strSender
.BCC = "xxxxxxxxxxxx"
.HTMLBody = "Please accept this email as confirmation that xxxx has received your road defect notification. xxxxx will investigate and action your notification according to priority and to ensure public safety. For further information, please phone xxxxx on 4221 6111 and quote reference number " & vbCrLf & IDnumber & vbCrLf & "Your original report can be seen below:" & vbCrLf & report_body
.Send
End With
圖片:
太棒了!偉大的解決方案,完美工作 – scb998
很高興它做到了:D您還可以使用「HTML標籤」更改字體類型,字體顏色和字體大小。如果你想了解更多,你可以開始[這裏](http://www.w3schools.com/html/)。它還允許您查看您生成的代碼的結果。 – L42