wodMailbox ActiveX Control - CreateSimpleAttachmentMessage Method
      
 

Description

Creates simple message with attachment.


Return Type

None  


Syntax

object.CreateSimpleAttachmentMessage SaveAs, From, To, Subject, Text, Attachment



The CreateSimpleAttachmentMessage Method syntax has these parts:

Part Description
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.
Attachment Required. A String value. Holds full path to the attachment.

Remarks

CreateSimpleAttachmentMessage method is a one-line-command that can be used in your applications to create email message that has only text 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 CreateSimpleAttachmentMessage 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.