public
|
#
__construct( array $param = array() )
Make a new mail
Parameters
- $param
- The parameters to pass to PHPMailer
|
public static
|
#
getInstance( array $param )
Static method to make a new mailer
Static method to make a new mailer
Parameters
- $param
- The parameters to pass to PHPMailer
|
public
Hawk\Mail
|
#
from( string $email, string $name = null )
Set 'from'
Parameters
- $email
- The sender email address to set
- $name
- The sender name to set
Returns
Hawk\Mail The instance itself, to permit chained actions
|
public
Hawk\Mail
|
#
fromName( string $name )
Set 'from-name'
Parameters
- $name
- The sender name to set
Returns
Hawk\Mail The instance itself, to permit chained actions
|
public
Hawk\Mail
|
#
to( string $email, string $name = '' )
Add a recipient
Parameters
- $email
- The recipient email address
- $name
- The recipient name
Returns
Hawk\Mail The instance itself, to permit chained actions
|
public
Hawk\Mail
|
#
replyTo( string $email, string $name = '' )
Set 'Reply-To'
Parameters
- $email
- The email address to reply to
- $name
- The name of the person to reply to
Returns
Hawk\Mail The instance itself, to permit chained actions
|
public
Hawk\Mail
|
#
cc( string $email, string $name = '' )
Add a recipient in copy
Parameters
- $email
- The email address to add in copy
- $name
- The recipient's name to add in copy
Returns
Hawk\Mail The instance itself, to permit chained actions
|
public
Hawk\Mail
|
#
bcc( string $email, string $name )
Add a recipient in hidden copy
Add a recipient in hidden copy
Parameters
- $email
- The recipient's email address to add in hidden copy
- $name
- The recipient's name to add in hidden copy
Returns
Hawk\Mail The instance itself, to permit chained actions
|
public
Hawk\Mail
|
#
attach( string $path, string $name = '', string $encoding = 'base64', string $type = '', string $disposition = 'attachment' )
Attach a file
Parameters
- $path
- The file path to attach
- $name
- The attachment name
- $encoding
- The encoding system to add the attachment
- $type
- The file MIME type
- $disposition
- Disposition to use
Returns
Hawk\Mail The instance itself, to permit chained actions
|
public
Hawk\Mail
|
#
subject( string $subject )
Set email subject
Parameters
- $subject
- The email subject
Returns
Hawk\Mail The instance itself, to permit chained actions
|
public
Hawk\Mail
|
#
html( string $html )
Set HTML content
Parameters
- $html
- The html content to set
Returns
Hawk\Mail The instance itself, to permit chained actions
|
public
Hawk\Mail
|
#
text( string $text )
Set text content
Parameters
Returns
Hawk\Mail The instance itself, to permit chained actions
|
public
|
|