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
SendFromHtml Method
Sends new text/html message from saved HTML file.
Syntax
- Basic
object.SendFromHtml (From, To, Subject, Filename)
The SendFromHtml(object,From,To,Subject,Filename) syntax has these parts:
The SendFromHtml(object,From,To,Subject,Filename) 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. |
Filename | Required. A String value. Holds filename of saved HTML file template. |
Remarks
SendFromHtml method is a one-line-command that can be used in your applications to send email with embedded images based on saved HTML file, with none of extra work. You can use this command immediately after you initialize wodSmtp. Message will be sent until it's delivered, or until RetryCount expires.No other commands needs to be set for this method to work - except property DNSHostname must not be empty! It is auto-filled by your network settings information when wodSmtp is initialized, but in case wodSmtp is unable to determine your Nameserver IP - you might need to fill it by yourself.
You can also use CreateFromHtml method instead of this one if you don't want your message to be delivered immediately.
If you haven't already Connected to the server using Connect method, SendFromHtml 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.