Description
-
Creates multipart message with attachment.
Return Type
-
None
Syntax
-
object.CreateTextHtmlAttachmentMessage SaveAs,
From, To, Subject, PlainText, HTMLText,
Attachment
The CreateTextHtmlAttachmentMessage Method syntax has these parts:
object |
An expression evaluating to an object
of type wodMailbox. |
SaveAs |
Required. A String value. Holds filename where
new generated message will be saved. |
From |
Required. A String value. Specifies sender of
the message. |
To |
Required. A String value. Specifies recipient of
the message. |
Subject |
Required. A String value. Specifies message
subject. |
PlainText |
Required. A String value. Holds text/plain part
of the message. |
HTMLText |
Required. A String value. Holds text/html part
of the message. |
Attachment |
Required. A String value. Holds full path to the
attachment. |
Remarks
-
CreateTextHtmlAttachmentMessage method is a one-line-command that
can be used in your applications to create email message that has
three parts: text, HTML, and one attachment, and save it to local
file. You can add one or more attachments if needed using
Attachments.Add
method after you reopen this message with wodMailbox. You can also
change message headers, or any other field necessary.
It is not required to use CreateTextHtmlAttachmentMessage method to
create such simple message - you can create similar message by
yourself from scratch using appropriate properties and methods. By
using this method, wodMailbox creates 'template' message and puts
appropriate values to appropriate parts.
Do not forget to reopen this message, either by setting its name in
Filename
property and calling
Lock method, or using Message.Peek
method, in order to actually work with that message
|