Property | Type | Description | |
---|---|---|---|
$PhpMailer | PHPMailer | ||
$Skipped | Recipients that were skipped because they lack permission. | ||
$supportedFormats | The supported email formats. |
Property | Type | Description | |
---|---|---|---|
$emailTemplate | The email body renderer. Use this to edit the email body. | ||
$format | The format of the email. |
Method | Description | |
---|---|---|
__construct ( ) | Constructor. | |
addHeader ( string $Name, string $Value ) : Gdn_Email | Add a custom header to the outgoing email. | |
addTo ( $RecipientEmail, $RecipientName = '' ) | ||
bcc ( mixed $RecipientEmail, string $RecipientName = '' ) : Gdn_Email | Adds to the "Bcc" recipient collection. | |
cc ( mixed $RecipientEmail, string $RecipientName = '' ) : Gdn_Email | Adds to the "Cc" recipient collection. | |
charset ( $Use = '' ) | ||
clear ( ) : Gdn_Email | Clears out all previously specified values for this object and restores it to the state it was in when it was instantiated. | |
formatMessage ( $message ) | ||
from ( string $SenderEmail = '', string $SenderName = '', boolean $bOverrideSender = false ) : Gdn_Email | Allows the explicit definition of the email's sender address & name. | |
getEmailTemplate ( ) : EmailTemplate | ||
getFormat ( ) : string | Get email format | |
getHTMLVersion ( $template ) : mixed | string | ||
getTextVersion ( $template ) : boolean | mixed | string | ||
masterView ( string $MasterView ) : Gdn_Email | Allows the definition of a masterview other than the default: "email.master". | |
message ( string $message, boolean $convertNewlines = true, boolean $filter = true ) : Gdn_Email | The message to be sent. | |
mimeType ( string $MimeType ) : Gdn_Email | Sets the mime-type of the email. | |
send ( string $EventName = '' ) : boolean | ||
setEmailTemplate ( EmailTemplate $emailTemplate ) : Gdn_Email | ||
setFormat ( string $format ) : Gdn_Email | Sets the format property, the email mime type and the email template format property. | |
subject ( string $Subject ) : Gdn_Email | Adds subject of the message to the email. | |
to ( mixed $RecipientEmail, string $RecipientName = '' ) : Gdn_Email | Adds to the "To" recipient collection. |
Method | Description | |
---|---|---|
resolveFormat ( ) | Sets the format property based on the config, and defaults to html. |
public bcc ( mixed $RecipientEmail, string $RecipientName = '' ) : Gdn_Email | ||
$RecipientEmail | mixed | An email (or array of emails) to add to the "Bcc" recipient collection. |
$RecipientName | string | The recipient name associated with $RecipientEmail. If $RecipientEmail is an array of email addresses, this value will be ignored. |
return | Gdn_Email |
public cc ( mixed $RecipientEmail, string $RecipientName = '' ) : Gdn_Email | ||
$RecipientEmail | mixed | An email (or array of emails) to add to the "Cc" recipient collection. |
$RecipientName | string | The recipient name associated with $RecipientEmail. If $RecipientEmail is an array of email addresses, this value will be ignored. |
return | Gdn_Email |
public clear ( ) : Gdn_Email | ||
return | Gdn_Email |
public getEmailTemplate ( ) : EmailTemplate | ||
return | EmailTemplate | The email body renderer. |
public static getHTMLVersion ( $template ) : mixed | string | ||
$template | ||
return | mixed | string |
public masterView ( string $MasterView ) : Gdn_Email | ||
$MasterView | string | |
return | Gdn_Email |
protected resolveFormat ( ) |
public setEmailTemplate ( EmailTemplate $emailTemplate ) : Gdn_Email | ||
$emailTemplate | EmailTemplate | The email body renderer. |
return | Gdn_Email |
public to ( mixed $RecipientEmail, string $RecipientName = '' ) : Gdn_Email | ||
$RecipientEmail | mixed | An email (or array of emails) to add to the "To" recipient collection. |
$RecipientName | string | The recipient name associated with $RecipientEmail. If $RecipientEmail is an array of email addresses, this value will be ignored. |
return | Gdn_Email |
public $Skipped |
protected $emailTemplate |