Method | Description | |
---|---|---|
__construct ( string $subject = null, string $body = null, string $contentType = null, string $charset = null ) | Create a new Message. | |
addAttachments ( array $attachments ) : |
Attach multiple attachments to this message | |
newInstance ( string $subject = null, string $body = null, string $contentType = null, string $charset = null ) : |
Create a new Message. | |
parseHtml ( string $template, array $variables, boolean $addUTM = false ) : |
Parses a TwigTemplate with the wanted variables | |
setPlainText ( string $content ) : |
Add plaintext content as fallback for the html |
Method | Description | |
---|---|---|
addUTM ( string $html, string $subject ) : string | ||
cssToInlineStyles ( string $html ) : string | Converts all css to inline styles | |
getTemplateContent ( string $template, array $variables = null ) : string | Returns the content from a given template | |
relativeToAbsolute ( string $html ) : string | Replace internal links and images to absolute links |
public addAttachments ( array $attachments ) : |
||
$attachments | array | |
return |
public setPlainText ( string $content ) : |
||
$content | string | |
return |