Method | Description | |
---|---|---|
getCharset ( ) : string | Returns charset. | |
getEmail ( ) : |
Returns the email to be sent. | |
getEncoding ( ) : string | Returns encoding. | |
getHostname ( ) : string | Returns hostname. | |
getXmailer ( ) : string | Returns X-Mailer header value. | |
send ( string $mode ) : |
Sends an email using the given mode. | |
setCharset ( string $charset ) : self | Sets charset. | |
setEmail ( |
Sets the email to be sent. | |
setEncoding ( string $encoding ) : self | Sets encoding. | |
setHostname ( string $hostname ) : self | Sets hostname. | |
setSmtp ( string $host, integer $port = 25, string $helo = '', string $user = '', string $password = '', integer $timeout = 5 ) : self | Sets SMTP parameters. | |
setXmailer ( string $xmailer ) : self | Sets X-Mailer header value. |
Method | Description | |
---|---|---|
addHeaderLine ( string $name, string $value ) | Adds a header line. | |
attachAll ( ) : string | Adds all attachments to the email. | |
changeCharset ( string $string ) : string | Converts a string from UTF-8 into the email encoding. | |
clearHeaderValue ( string $string ) : string | Clears headers from line endings. | |
create ( ) | Creates an email. | |
createBody ( ) | Creates body. | |
createHeader ( ) | Creates header. | |
encodeHeader ( string $string ) : string | Encodes headers. | |
encodeString ( string $string, string $encoding, integer $lineLength = self::LINE_LENGTH ) : string | Encodes a string using the given encoding. | |
formatAddress ( |
Formats an email address. | |
formatAddressList ( array $addressList ) : string | Formats a list of addresses. | |
getBoundaryEnd ( string $boundary ) : string | Returns an end of an email part. | |
getBoundaryStart ( string $boundary, string $contentType, string $charset, string $encoding ) : string | Returns a beginning of an email part. | |
getHeader ( array $except = [] ) : string | Returns headers except given lines. | |
sendByMail ( ) | Sends an email using the mail() function. | |
sendBySmtp ( ) | Sends an email using a SMTP server. |
public getXmailer ( ) : string | ||
return | string |
public setCharset ( string $charset ) : self | ||
$charset | string | Final charset |
return | self |
public setEmail ( |
||
Email instance | ||
return | self |
public setEncoding ( string $encoding ) : self | ||
$encoding | string | Encoding |
return | self |
public setHostname ( string $hostname ) : self | ||
$hostname | string | Hostname |
return | self |
public setSmtp ( string $host, integer $port = 25, string $helo = '', string $user = '', string $password = '', integer $timeout = 5 ) : self | ||
$host | string | Hostname |
$port | integer | Port |
$helo | string | HELO value |
$user | string | Username |
$password | string | Password |
$timeout | integer | Connection timeout |
return | self |
public setXmailer ( string $xmailer ) : self | ||
$xmailer | string | X-Mailer header value |
return | self |