SmtpMail Class extending Mail

/ The SmtpMail class allows you to send emails through your SMTP account /

Class Methods


Sets the host of the SMTP server

function setHost(string hostname) : void

Sets the port of the SMTP server

function setPort(number port) : void


Set this to true if we should use SSL to communicate with this SMTP server

function setUseSSL(boolean use_ssl) : void

Sets the username for this SMTP server

function setUsername(string username) : void


Sets the password for this SMTP server

function setPassword(string password) : void

Sends this email

function send() : void