wodSmtp ActiveX Control - CreateSimpleAttachment Method
      
 

Description

Creates simple message with attachment.


Return Type

None  


Syntax

object.CreateSimpleAttachment From, To, Subject, Text, Attachment



The CreateSimpleAttachment Method syntax has these parts:

Part Description
object An expression evaluating to an object of type wodSmtp.
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.
Text Required. A String value. Holds body of the message - actual message content you want to send.
Attachment Required. A String value. Holds full path to the attachment.

Remarks

CreateSimpleAttachment method is a one-line-command that can be used in your applications to create email message that has two parts: text part and one attachment. Message will not be sent. You can add more attachments if needed using Message.Attach method. You can also change message headers, or any other field necessary.

It is not required to use CreateSimpleAttachment method to send such message - you can create similar message from scratch using appropriate properties and methods. By using this method, wodSmtp creates 'template' message and puts appropriate values to appropriate parts.

To finally send the message, use SendMessage method.