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
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
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
You should consider setting Hostname property only if
you want to use 'Smarthost' mail server.