Message
Uses
Properties
$message Symfony\...\Email
The Symfony Email instance.
$embeddedFiles array
CIDs of files embedded in the message.
Methods
__construct ( Symfony\...\Email $message ) : void
Create a new message instance.
Parameters
- $message Symfony\...\Email
from ( $address , $name ) : $this
Add a "from" address to the message.
Parameters
- $address string|array
- $name string|null
sender ( $address , $name ) : $this
Set the "sender" of the message.
Parameters
- $address string|array
- $name string|null
returnPath ( $address ) : $this
Set the "return path" of the message.
Parameters
- $address string
to ( $address , $name , $override ) : $this
Add a recipient to the message.
Parameters
- $address string|array
- $name string|null
- $override bool
forgetTo ( ) : $this
Remove all "to" addresses from the message.
cc ( $address , $name , $override ) : $this
Add a carbon copy to the message.
Parameters
- $address string|array
- $name string|null
- $override bool
forgetCc ( ) : $this
Remove all carbon copy addresses from the message.
bcc ( $address , $name , $override ) : $this
Add a blind carbon copy to the message.
Parameters
- $address string|array
- $name string|null
- $override bool
forgetBcc ( ) : $this
Remove all of the blind carbon copy addresses from the message.
replyTo ( $address , $name ) : $this
Add a "reply to" address to the message.
Parameters
- $address string|array
- $name string|null
addAddresses ( $address , $name , $type ) : $this
Add a recipient to the message.
Parameters
- $address string|array
- $name string
- $type string
addAddressDebugHeader ( string $header , array $addresses ) : $this
Add an address debug header for a list of recipients.
Parameters
- $header string
- $addresses Symfony\...\Address[]
subject ( $subject ) : $this
Set the subject of the message.
Parameters
- $subject string
priority ( $level ) : $this
Set the message priority level.
Parameters
- $level int
attach ( $file , array $options ) : $this
Attach a file to the message.
Parameters
- $file string|Attachable |Attachment
- $options array
attachData ( $data , $name , array $options ) : $this
Attach in-memory data as an attachment.
Parameters
- $data string|resource
- $name string
- $options array
embed ( $file ) : string
Embed a file in the message and get the CID.
Parameters
- $file string|Attachable |Attachment
embedData ( $data , $name , $contentType ) : string
Embed in-memory data in the message and get the CID.
Parameters
- $data string|resource
- $name string
- $contentType string|null
getSymfonyMessage ( ) : Symfony\...\Email
Get the underlying Symfony Email instance.
__call ( $method , $parameters ) : mixed
Dynamically pass missing methods to the Symfony instance.
Parameters
- $method string
- $parameters array