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
Connect Method
Connects to the SMTP server.
Syntax
- Basic
object.Connect()
The Connect(object) syntax has these parts:
The Connect(object) syntax has these parts:
object | An expression evaluating to an object of type wodSmtp |
Remarks
This method will connect to SMTP server specified in Hostname property. If Hostname property contains more than one line, it will connect to the server that is in the first line of Hostname property value.When connection is initiated, Connecting event will fire and it will contain hostname of SMTP server where wodSmtp is trying to connect.
There is no need to issue Connect method manually, because if you use SendMessage method, it will do the job for you.