Skip to main content
Version: v4 (Stable)

SendHtmlMail

SendHtmlMail(From As String, To As String, Subject As String, HtmlMessage As String[, AuthLogin As String, AuthPwd As String[, bUseSSL As Boolean[, bStartTLS As Boolean]]]) As Boolean

Send an HTML formatted mail. The HtmlMessage parameter must be a valid HTML string. Before sending a message, you must set the SMTPServer property. You can also add some enclosed files with the method AddFile. The AuthLogin and AuthPwd can be used for SMTP servers which require an authentication. Set the <bUseSSL> parameter if the SMTP server needs a secure connection. If bESMTP is TRUE you can use the StartTLS protocol and put <bStartTLS> to TRUE.