Back to product page
- Introduction
- License agreement
- Getting Started
- Enumerations
- Objects
- wodSmtp
- Methods
- Properties
- Authentication
- Blocking
- Certificate
- CharSet
- DNSHostname
- Hostname
- LastError
- LastErrorText
- Login
- MailFrom
- MailTo
- Message
- MyHostname
- MyIP
- Notification
- Password
- Port
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- RequestReceipt
- RetryCount
- RetryWait
- Security
- State
- StateText
- Tag
- Timeout
- Transcript
- UseIPv6
- Version
- Events
- IwodSmtpClientNotify
- SmtpEncoder
- SmtpHdr
- SmtpHdrs
- SmtpMsg
- SmtpMsgs
- wodSmtp
- How to get support?
- Technical information
- Fast notifications interface
- Error list
CreateTextHtml Method
Creates multipart message.
Syntax
- Basic
object.CreateTextHtml (From, To, Subject, PlainText, HTMLText)
The CreateTextHtml(object,From,To,Subject,PlainText,HTMLText) syntax has these parts:
The CreateTextHtml(object,From,To,Subject,PlainText,HTMLText) syntax has these parts:
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. |
PlainText | Required. A String value. Holds text/plain part of the message. |
HTMLText | Required. A String value. Holds text/html part of the message. |
Remarks
CreateTextHtml method is a one-line-command that can be used in your applications to create email message that has two parts: text/plain part and text/html part. Message will not be sent. You can add attachments if needed using Message.Attach method. You can also change message headers, or any other field necessary.It is not required to use CreateTextHtml 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.