Class Mail
Commodity class for sending e-mails.
Namespace: hrm
Package: hrm
Located at Mail.php
Methods summary
public
|
#
__construct( string $sender )
Mail constructor.
Parameters
- $sender
- Sender's e-mail address.
|
public
|
#
setReceiver( string $receiver )
Sets the e-mail address of the receiver.
Sets the e-mail address of the receiver.
Parameters
- $receiver
- Receiver's e-mail address
|
public
|
#
setSubject( string $subject )
Sets the subject of the e-mail.
Sets the subject of the e-mail.
Parameters
- $subject
- Subject of the e-mail.
|
public
|
#
setMessage( string $message )
Sets the message of the e-mail.
Sets the message of the e-mail.
Parameters
- $message
- Message of the e-mail.
|
public
boolean
|
#
send( )
Sends the e-mail.
Returns
boolean True if the e-mail was sent successfully, false otherwise.
|