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
SendMessage Method
Sends email message to the server.
Syntax
- Basic
object.SendMessage()
The SendMessage(object) syntax has these parts:
The SendMessage(object) syntax has these parts:
object | An expression evaluating to an object of type wodSmtp |
Remarks
This method will initiate sending the message to the SMTP server. It can be used after you have set up message contents.Connected to the server using Connect method, SendMessage will establish the connection for you, and in that case it will automatically call Disconnect method to after the message is delivered. If Connect method was manually called, wodSmtp will not disconnect, so you can call Reset method and send new message to the same server.
If you haven't set Hostname property (to define Smarthost SMTP server), SendMessage will first get domain out of MailTo property value, resolve it to find default mail exchanger records, and fill Hostname property with that value.