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
Hostname Property
Holds hostname of SMTP server (Smarthost).
Type
StringSyntax
- Basic
object.Hostname [= value]
The Hostname(object,value) syntax has these parts:
The Hostname(object,value) syntax has these parts:
object | An expression evaluating to an object of type wodSmtp |
value | A String value. |
Remarks
Hostname property holds full name of the server (or its IP address) where wodSmtp will connect to deliver messages. It can be set prior to issuing Connect or SendMessage methods. You should also set Login and Password methods if authentication with the server is needed.Setting Hostname property is not required! If you don't specify it, wodSmtp will automatically fill it using value received from request to DNS server, when wodSmtp tries to get default mail exchanger hosts for given recipient.
This property can contain more than one SMTP server - each name should be in its own line, and lines should be separated with CRLF sequence. When wodSmtp initiates connection to the server, it will move current to the back (as last line), making any new attempts to use other SMTP servers - if any. This way message has greater changes to be delivered.
You should consider setting Hostname property only if you want to use 'Smarthost' mail server.