The mail component is an implementation of the PHPMailer library. It is a very flexible component to send regular mails, html mails, append attachements and it allows to bind to the Template component for templated emails.


Properties


Description

autoconfig

Setting this property to true will cause the component to search for the config file when the applications start

bcc

Standard BCC (blind copy to) email addresses, comma separated

cc

Standard CC (copy to) email addresses, comma separated

errorLevel

Error level of the compontent

from

Sender

host

Mail server ip or dns name

htmlBody

html body text

mailType

mail type (html/text or both)

noHtmlBody

non-html body text

Port

mailer port to be used

Recipients

List of email addresses (, separated)

smtpAuth

Authentication required

smtpSecure

none, ssl, tls

subject

Subject of the email

userId

Userid for sending email


PHP Events


Description

onAfterConnect

Triggers when the connection is active

onBeforeConnect

Triggers just before connecting

onConnectionError

Triggers when a connect error takes place


JavaScript Events

No additional events