Свойство | Type | Description | |
---|---|---|---|
$attachments | |||
$bcc | these are not to be used outside of the SimpleEmailService class! | ||
$cc | these are not to be used outside of the SimpleEmailService class! | ||
$customHeaders | |||
$from | |||
$messageHtmlCharset | |||
$messageTextCharset | |||
$messagehtml | |||
$messagetext | |||
$recipientsCharset | these are not to be used outside of the SimpleEmailService class! | ||
$replyto | these are not to be used outside of the SimpleEmailService class! | ||
$returnpath | |||
$subject | |||
$subjectCharset | |||
$to | these are not to be used outside of the SimpleEmailService class! |
Méthode | Description | |
---|---|---|
__construct ( ) | ||
addAttachmentFromData ( string $name, string $data, string $mimeType = 'application/octet-stream', string $contentId = null, string $attachmentType = 'attachment' ) : SimpleEmailServiceMessage | Add email attachment by directly passing the content | |
addAttachmentFromFile ( string $name, string $path, string $mimeType = 'application/octet-stream', string $contentId = null, string $attachmentType = 'attachment' ) : boolean | Add email attachment by passing file path | |
addAttachmentFromUrl ( string $name, string $url, string $mimeType = 'application/octet-stream', string $contentId = null, string $attachmentType = 'attachment' ) : boolean | Add email attachment by passing file path | |
addBCC ( $bcc ) | ||
addCC ( $cc ) | ||
addCustomHeader ( string $header ) : SimpleEmailServiceMessage | Add custom header - this works only with SendRawEmail | |
addReplyTo ( $replyto ) | ||
addTo ( $to ) | addTo, addCC, addBCC, and addReplyTo have the following behavior: If a single address is passed, it is appended to the current list of addresses. | |
clearBCC ( ) | Clear the BCC: email address(es) for the message | |
clearCC ( ) | Clear the CC: email address(es) for the message | |
clearRecipients ( ) | Clear all of the message recipients in one go | |
clearReplyTo ( ) | Clear the Reply-To: email address(es) for the message | |
clearTo ( ) | Clear the To: email address(es) for the message | |
encodeRecipients ( $recipient ) : string | Encode recipient with the specified charset in recipientsCharset | |
getRawMessage ( ) : string | Get the raw mail message | |
hasInlineAttachments ( ) : boolean | Get the existence of attached inline messages | |
setFrom ( $from ) | ||
setMessageCharset ( $textCharset, $htmlCharset = null ) | ||
setMessageFromFile ( $textfile, $htmlfile = null ) | ||
setMessageFromString ( $text, $html = null ) | ||
setMessageFromURL ( $texturl, $htmlurl = null ) | ||
setRecipientsCharset ( $charset ) | ||
setReturnPath ( $returnpath ) | ||
setSubject ( $subject ) | ||
setSubjectCharset ( $charset ) | ||
validate ( ) : boolean | Validates whether the message object has sufficient information to submit a request to SES. |
public addAttachmentFromData ( string $name, string $data, string $mimeType = 'application/octet-stream', string $contentId = null, string $attachmentType = 'attachment' ) : SimpleEmailServiceMessage | ||
$name | string | The name of the file attachment as it will appear in the email |
$data | string | The contents of the attachment file |
$mimeType | string | Specify custom MIME type |
$contentId | string | Content ID of the attachment for inclusion in the mail message |
$attachmentType | string | Attachment type: attachment or inline |
Résultat | SimpleEmailServiceMessage | $this |
public addAttachmentFromFile ( string $name, string $path, string $mimeType = 'application/octet-stream', string $contentId = null, string $attachmentType = 'attachment' ) : boolean | ||
$name | string | The name of the file attachment as it will appear in the email |
$path | string | Path to the attachment file |
$mimeType | string | Specify custom MIME type |
$contentId | string | Content ID of the attachment for inclusion in the mail message |
$attachmentType | string | Attachment type: attachment or inline |
Résultat | boolean | Status of the operation |
public addAttachmentFromUrl ( string $name, string $url, string $mimeType = 'application/octet-stream', string $contentId = null, string $attachmentType = 'attachment' ) : boolean | ||
$name | string | The name of the file attachment as it will appear in the email |
$url | string | URL to the attachment file |
$mimeType | string | Specify custom MIME type |
$contentId | string | Content ID of the attachment for inclusion in the mail message |
$attachmentType | string | Attachment type: attachment or inline |
Résultat | boolean | Status of the operation |
public addCustomHeader ( string $header ) : SimpleEmailServiceMessage | ||
$header | string | Your custom header |
Résultat | SimpleEmailServiceMessage | $this |
public addTo ( $to ) |
public clearRecipients ( ) |
public clearReplyTo ( ) |
public encodeRecipients ( $recipient ) : string | ||
Résultat | string | Encoded recipients joined with comma |
public getRawMessage ( ) : string | ||
Résultat | string |
public hasInlineAttachments ( ) : boolean | ||
Résultat | boolean |
public $bcc |
public $recipientsCharset |
public $replyto |