Method |
Description |
|
__construct ( ConfigObject $config = null ) |
|
|
__invoke ( ) |
|
|
addAttachment ( File $file, string $fileName = '', string $type = 'plain/text' ) |
Attach a file to your message. |
|
addBcc ( Email $email ) |
Appends one more address to the blind-copied list. |
|
addCc ( Email $email ) |
Appends one more address to the copied list. |
|
addHeader ( string $name, string $value, null | array $params = null ) |
Adds a header to the message. |
|
addTo ( Email $email ) |
Appends one more recipient to the list. |
|
getBcc ( ) : array |
Returns a list of defined bcc recipients. |
|
getBody ( ) : string |
Returns the body of the message. |
|
getCc ( ) : array |
Returns a list of addresses to whom the message will be copied to. |
|
getContentTransferEncoding ( ) : string |
Get the defined encoding scheme. |
|
getContentType ( ) : string |
Returns the defined content type of the message. |
|
getFrom ( ) : Email |
Returns the person who sent the message. |
|
getHeader ( string $name ) : mixed |
Get a header from the message. |
|
getHeaders ( ) : array |
Get all headers from the message. |
|
getReplyTo ( ) : Email | null |
Returns the reply-to address. |
|
getReturnPath ( ) : string |
Returns the defined return-path. |
|
getSender ( ) : Email |
Return the person who sent the message. |
|
getSubject ( ) : string |
Get the current message subject. |
|
getTo ( ) : array |
Returns a list of defined recipients. |
|
setBcc ( array | Email $bcc ) |
Specifies the addresses of recipients who the message will be blind-copied to. |
|
setBody ( string $content, string $type = 'text/html', string $charset = 'utf-8' ) : Webiny\Component\Mailer\MessageInterface |
Set the message body. |
|
setCc ( array | Email $cc ) |
Specifies the addresses of recipients who will be copied in on the message. |
|
setContentTransferEncoding ( string $encoding ) |
Specifies the encoding scheme in the message. |
|
setContentType ( string $contentType ) |
Specifies the format of the message (usually text/plain or text/html). |
|
setFrom ( Email $from ) |
Specifies the address of the person who the message is from. |
|
setHeaders ( array | ArrayObject $headers ) |
Set multiple headers |
|
setReplyTo ( Email $replyTo ) |
Define the reply-to address. |
|
setReturnPath ( string $returnPath ) |
Defines the return path for the email. |
|
setSender ( Email $sender ) |
Specifies the address of the person who physically sent the message. |
|
setSubject ( string $subject ) |
Set the message subject. |
|
setTo ( array | Email $to ) |
Specifies the addresses of the intended recipients. |
|