Class Mailer
Class Mailer
+--Example usage:
|
| $mail = new Mailer();
| $mail->addTo('test@test.com');
| $mail->addCc('cc@test.com');
| $mail->addBcc('bcc@test.com');
| $mail->setFrom('Test User testuser@test.com');
| $mail->setSubject('Testsubject');
| $mail->addAttachment('shownFileName.png', '/absolute/path/to/file.png');
| $mail->addAttachment('logo.png', '/absolute/path/to/logo.png', true); // We want to show it inline
| $mail->setContent('
Welcome to our newsletter
... ... ...'); | $mail->send(); // Html is on per default; give this method 'false' to send in plain text |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
addAttachment( Faulancer\Mail\string $name, Faulancer\Mail\string $path, Faulancer\Mail\bool $inline = false )
|
public
boolean
|
|
protected
boolean
|
|
protected
string
|
|
protected
string
|
|
protected
string
|
protected
array
|
$recipients
|
#
[]
|
protected
array
|
$carbonCopies
|
#
[]
|
protected
array
|
$blindCarbonCopies
|
#
[]
|
protected
string
|
$from
|
#
''
|
protected
string
|
$replyTo
|
#
''
|
protected
string
|
$subject
|
#
''
|
protected
string
|
$content
|
#
''
|
protected
boolean
|
$isHtml
|
#
false
|
protected
array
|
$attachment
|
#
[]
|
protected
string
|
$boundary
|
#
''
|