6/11/2023 0 Comments Outlook plain text settingHave questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback. HTMLBody = "The body of this message will appear in HTML.Type the message text here. Set objMail = Application.CreateItem(olMailItem) 'Creates a new email item and modifies its properties. The body text of the email item will now appear in HTML format. From the new menu, select Outlook Properties. Double-click on the email address, then click the More Options icon. Outlook 2013: Open the recipient from your contact list. Now, click the drop-down menu next to Internet format and set it to Send Plain Text only. The following Microsoft Visual Basic for Applications (VBA) example creates a new MailItem object and sets the BodyFormat property to olFormatHTML. Right-click on the email address and select Outlook Properties. Microsoft Outlook provides three body text format options: Plain Text, Rich Text (RTF), and HTML.Īll text formatting will be lost when the BodyFormat property is switched from RTF to HTML and vice-versa. Ensure that the Read all standard mail in plain text is not selected. The body text format determines the standard used to display the text of the message. From Outlook, select File and select Options. SyntaxĮxpression A variable that represents a MailItem object. Returns or sets an OlBodyFormat constant indicating the format of the body text.
0 Comments
Leave a Reply. |