include/SugarPHPMailer.php

Show: inherited
Table of Contents

\SugarPHPMailer

Package: SugarCRM

Sugar mailer

Parent(s)
\PHPMailer
Api
 

Properties

Propertypublicstring  $AltBody= ''''
inherited

Sets the text-only body of the message. This automatically sets the email to multipart/alternative. This body can be read by mail clients that do not have HTML email capability such as mutt. Clients that can read HTML will view the normal Body.

Inherited from: \PHPMailer::$$AltBody
Default value''Details
Type
string
Inherited_from
\PHPMailer::$$AltBody  
Propertypublicstring  $Body= ''''
inherited

Sets the Body of the message. This can be either an HTML or text body.

Inherited from: \PHPMailer::$$Body

If HTML then run IsHTML(true).

Default value''Details
Type
string
Inherited_from
\PHPMailer::$$Body  
Propertypublicstring  $CharSet= ''utf-8''
inherited

Sets the CharSet of the message.

Inherited from: \PHPMailer::$$CharSet
Default value'utf-8'Details
Type
string
Inherited_from
\PHPMailer::$$CharSet  
Propertypublicstring  $ConfirmReadingTo= ''''
inherited

Sets the email address that a reading confirmation will be sent.

Inherited from: \PHPMailer::$$ConfirmReadingTo
Default value''Details
Type
string
Inherited_from
\PHPMailer::$$ConfirmReadingTo  
Propertypublicstring  $ContentType= ''text/plain''
inherited

Sets the Content-type of the message.

Inherited from: \PHPMailer::$$ContentType
Default value'text/plain'Details
Type
string
Inherited_from
\PHPMailer::$$ContentType  
Propertyprivate  $CustomHeader= 'array()'
inheritedInherited from: \PHPMailer::$$CustomHeader
Default valuearray()Details
Type
n/a
Inherited_from
\PHPMailer::$$CustomHeader  
Propertypublicstring  $Encoding= ''8bit''
inherited

Sets the Encoding of the message. Options for this are "8bit", "7bit", "binary", "base64", and "quoted-printable".

Inherited from: \PHPMailer::$$Encoding
Default value'8bit'Details
Type
string
Inherited_from
\PHPMailer::$$Encoding  
Propertypublicstring  $ErrorInfo= ''''
inherited

Holds the most recent mailer error message.

Inherited from: \PHPMailer::$$ErrorInfo
Default value''Details
Type
string
Inherited_from
\PHPMailer::$$ErrorInfo  
Propertypublicstring  $From= ''root@localhost''
inherited

Sets the From email address for the message.

Inherited from: \PHPMailer::$$From
Default value'root@localhost'Details
Type
string
Inherited_from
\PHPMailer::$$From  
Propertypublicstring  $FromName= ''Root User''
inherited

Sets the From name of the message.

Inherited from: \PHPMailer::$$FromName
Default value'Root User'Details
Type
string
Inherited_from
\PHPMailer::$$FromName  
Propertypublicstring  $Helo= ''''
inherited

Sets the SMTP HELO of the message (Default is $Hostname).

Inherited from: \PHPMailer::$$Helo
Default value''Details
Type
string
Inherited_from
\PHPMailer::$$Helo  
Propertypublicstring  $Host= ''localhost''
inherited

Sets the SMTP hosts. All hosts must be separated by a semicolon. You can also specify a different port for each host by using this format: [hostname:port] (e.g. "smtp1.example.com:25;smtp2.example.com").

Inherited from: \PHPMailer::$$Host

Hosts will be tried in order.

Default value'localhost'Details
Type
string
Inherited_from
\PHPMailer::$$Host  
Propertypublicstring  $Hostname= ''''
inherited

Sets the hostname to use in Message-Id and Received headers and as default HELO string. If empty, the value returned by SERVER_NAME is used or 'localhost.localdomain'.

Inherited from: \PHPMailer::$$Hostname
Default value''Details
Type
string
Inherited_from
\PHPMailer::$$Hostname  
Propertypublicstring  $LE= '"\r\n"'
inherited

Provides the ability to change the line ending

Inherited from: \PHPMailer::$$LE
Default value"\r\n"Details
Type
string
Inherited_from
\PHPMailer::$$LE  
Propertypublicstring  $Mailer= ''mail''
inherited

Method to send mail: ("mail", "sendmail", or "smtp").

Inherited from: \PHPMailer::$$Mailer
Default value'mail'Details
Type
string
Inherited_from
\PHPMailer::$$Mailer  
Propertypublicstring  $MessageID= ''''
inherited

Sets the message ID to be used in the Message-Id header.

Inherited from: \PHPMailer::$$MessageID

If empty, a unique id will be generated.

Default value''Details
Type
string
Inherited_from
\PHPMailer::$$MessageID  
Propertypublicstring  $Password= ''''
inherited

Sets SMTP password.

Inherited from: \PHPMailer::$$Password
Default value''Details
Type
string
Inherited_from
\PHPMailer::$$Password  
Propertypublicstring  $PluginDir= ''include/phpmailer/''
inherited

Path to PHPMailer plugins. This is now only useful if the SMTP class is in a different directory than the PHP include path.

Inherited from: \PHPMailer::$$PluginDir
Default value'include/phpmailer/'Details
Type
string
Inherited_from
\PHPMailer::$$PluginDir  
Propertypublicint  $Port= '25'
inherited

Sets the default SMTP server port.

Inherited from: \PHPMailer::$$Port
Default value25Details
Type
int
Inherited_from
\PHPMailer::$$Port  
Propertypublicint  $Priority= '3'
inherited

Email priority (1 = High, 3 = Normal, 5 = low).

Inherited from: \PHPMailer::$$Priority
Default value3Details
Type
int
Inherited_from
\PHPMailer::$$Priority  
Propertyprivate  $ReplyTo= 'array()'
inheritedInherited from: \PHPMailer::$$ReplyTo
Default valuearray()Details
Type
n/a
Inherited_from
\PHPMailer::$$ReplyTo  
Propertypublicbool  $SMTPAuth= 'false'
inherited

Sets SMTP authentication. Utilizes the Username and Password variables.

Inherited from: \PHPMailer::$$SMTPAuth
Default valuefalseDetails
Type
bool
Inherited_from
\PHPMailer::$$SMTPAuth  
Propertypublicbool  $SMTPDebug= 'false'
inherited

Sets SMTP class debugging on or off.

Inherited from: \PHPMailer::$$SMTPDebug
Default valuefalseDetails
Type
bool
Inherited_from
\PHPMailer::$$SMTPDebug  
Propertypublicbool  $SMTPKeepAlive= 'false'
inherited

Prevents the SMTP connection from being closed after each mail sending. If this is set to true then to close the connection requires an explicit call to SmtpClose().

Inherited from: \PHPMailer::$$SMTPKeepAlive
Default valuefalseDetails
Type
bool
Inherited_from
\PHPMailer::$$SMTPKeepAlive  
Propertypublicstring  $SMTPSecure= '""'
inherited

Sets connection prefix.

Inherited from: \PHPMailer::$$SMTPSecure

Options are "", "ssl" or "tls"

Default value""Details
Type
string
Inherited_from
\PHPMailer::$$SMTPSecure  
Propertypublicstring  $Sender= ''''
inherited

Sets the Sender email (Return-Path) of the message. If not empty, will be sent via -f to sendmail or as 'MAIL FROM' in smtp mode.

Inherited from: \PHPMailer::$$Sender
Default value''Details
Type
string
Inherited_from
\PHPMailer::$$Sender  
Propertypublicstring  $Sendmail= ''/usr/sbin/sendmail''
inherited

Sets the path of the sendmail program.

Inherited from: \PHPMailer::$$Sendmail
Default value'/usr/sbin/sendmail'Details
Type
string
Inherited_from
\PHPMailer::$$Sendmail  
Propertypublicbool  $SingleTo= 'false'
inherited

Provides the ability to have the TO field process individual emails, instead of sending to entire TO addresses

Inherited from: \PHPMailer::$$SingleTo
Default valuefalseDetails
Type
bool
Inherited_from
\PHPMailer::$$SingleTo  
Propertypublicstring  $Subject= ''''
inherited

Sets the Subject of the message.

Inherited from: \PHPMailer::$$Subject
Default value''Details
Type
string
Inherited_from
\PHPMailer::$$Subject  
Propertypublicint  $Timeout= '10'
inherited

Sets the SMTP server timeout in seconds. This function will not work with the win32 version.

Inherited from: \PHPMailer::$$Timeout
Default value10Details
Type
int
Inherited_from
\PHPMailer::$$Timeout  
Propertypublicstring  $Username= ''''
inherited

Sets SMTP username.

Inherited from: \PHPMailer::$$Username
Default value''Details
Type
string
Inherited_from
\PHPMailer::$$Username  
Propertypublicstring  $Version= '"2.3"'
inherited

Holds PHPMailer version.

Inherited from: \PHPMailer::$$Version
Default value"2.3"Details
Type
string
Inherited_from
\PHPMailer::$$Version  
Propertypublicint  $WordWrap= '0'
inherited

Sets word wrapping on the body of the message to a given number of characters.

Inherited from: \PHPMailer::$$WordWrap
Default value0Details
Type
int
Inherited_from
\PHPMailer::$$WordWrap  
Propertypublic  $attachment= 'array()'
inheritedInherited from: \PHPMailer::$$attachment
Default valuearray()Details
Type
n/a
Inherited_from
\PHPMailer::$$attachment  
Propertyprivate  $bcc= 'array()'
inheritedInherited from: \PHPMailer::$$bcc
Default valuearray()Details
Type
n/a
Inherited_from
\PHPMailer::$$bcc  
Propertypublic  $boundary= 'array()'
inheritedInherited from: \PHPMailer::$$boundary
Default valuearray()Details
Type
n/a
Inherited_from
\PHPMailer::$$boundary  
Propertyprivate  $cc= 'array()'
inheritedInherited from: \PHPMailer::$$cc
Default valuearray()Details
Type
n/a
Inherited_from
\PHPMailer::$$cc  
Propertypublic  $disclosureEnabled= ''
Details
Type
n/a
Propertypublic  $disclosureText= ''
Details
Type
n/a
Propertyprivate  $error_count= '0'
inheritedInherited from: \PHPMailer::$$error_count
Default value0Details
Type
n/a
Inherited_from
\PHPMailer::$$error_count  
Propertypublic  $isHostEmpty= 'false'
Default valuefalseDetails
Type
n/a
Propertyprivate  $language= 'array()'
inheritedInherited from: \PHPMailer::$$language
Default valuearray()Details
Type
n/a
Inherited_from
\PHPMailer::$$language  
Propertyprivate  $message_type= ''''
inheritedInherited from: \PHPMailer::$$message_type
Default value''Details
Type
n/a
Inherited_from
\PHPMailer::$$message_type  
Propertypublic  $oe= ''
Details
Type
n/a
Propertypublic  $opensslOpened= 'true'
Default valuetrueDetails
Type
n/a
Propertypublic  $preppedForOutbound= 'false'
Default valuefalseDetails
Type
n/a
Propertypublic  $protocol= '"tcp://"'
Default value"tcp://"Details
Type
n/a
Propertyprivate  $sign_cert_file= '""'
inheritedInherited from: \PHPMailer::$$sign_cert_file
Default value""Details
Type
n/a
Inherited_from
\PHPMailer::$$sign_cert_file  
Propertyprivate  $sign_key_file= '""'
inheritedInherited from: \PHPMailer::$$sign_key_file
Default value""Details
Type
n/a
Inherited_from
\PHPMailer::$$sign_key_file  
Propertyprivate  $sign_key_pass= '""'
inheritedInherited from: \PHPMailer::$$sign_key_pass
Default value""Details
Type
n/a
Inherited_from
\PHPMailer::$$sign_key_pass  
Propertypublic  $smtp= 'NULL'
inheritedInherited from: \PHPMailer::$$smtp
Default valueNULLDetails
Type
n/a
Inherited_from
\PHPMailer::$$smtp  
Propertyprivate  $to= 'array()'
inheritedInherited from: \PHPMailer::$$to
Default valuearray()Details
Type
n/a
Inherited_from
\PHPMailer::$$to  

Methods

methodpublicAddAddress( string $address, string $name = '' ) : void
inherited

Adds a "To" address.

Inherited from: \PHPMailer::AddAddress()
Parameters
Name Type Description
$address string
$name string
methodpublicAddAttachment( string $path, string $name = '', string $encoding = 'base64', string $type = 'application/octet-stream' ) : bool
inherited

Adds an attachment from a path on the filesystem.

Inherited from: \PHPMailer::AddAttachment()

Returns false if the file could not be found or accessed.

Parameters
Name Type Description
$path string

Path to the attachment.

$name string

Overrides the attachment name.

$encoding string

File encoding (see $Encoding).

$type string

File extension (MIME) type.

Returns
Type Description
bool
methodpublicAddBCC( string $address, string $name = '' ) : void
inherited

Adds a "Bcc" address. Note: this function works with the SMTP mailer on win32, not with the "mail" mailer.

Inherited from: \PHPMailer::AddBCC()
Parameters
Name Type Description
$address string
$name string
methodpublicAddCC( string $address, string $name = '' ) : void
inherited

Adds a "Cc" address. Note: this function works with the SMTP mailer on win32, not with the "mail" mailer.

Inherited from: \PHPMailer::AddCC()
Parameters
Name Type Description
$address string
$name string
methodpublicAddCustomHeader(  $custom_header ) : void
inherited

Adds a custom header.

Inherited from: \PHPMailer::AddCustomHeader()
Parameters
Name Type Description
$custom_header
Details
Access
public  
methodpublicAddEmbeddedImage( string $path, string $cid, string $name = '', string $encoding = 'base64', string $type = 'application/octet-stream' ) : bool
inherited

Adds an embedded attachment. This can include images, sounds, and just about any other document. Make sure to set the $type to an image type. For JPEG images use "image/jpeg" and for GIF images use "image/gif".

Inherited from: \PHPMailer::AddEmbeddedImage()
Parameters
Name Type Description
$path string

Path to the attachment.

$cid string

Content ID of the attachment. Use this to identify the Id for accessing the image in an HTML form.

$name string

Overrides the attachment name.

$encoding string

File encoding (see $Encoding).

$type string

File extension (MIME) type.

Returns
Type Description
bool
methodpublicAddReplyTo( string $address, string $name = '' ) : void
inherited

Adds a "Reply-to" address.

Inherited from: \PHPMailer::AddReplyTo()
Parameters
Name Type Description
$address string
$name string
methodpublicAddStringAttachment( string $string, string $filename, string $encoding = 'base64', string $type = 'application/octet-stream' ) : void
inherited

Adds a string or binary attachment (non-filesystem) to the list.

Inherited from: \PHPMailer::AddStringAttachment()

This method can be used to attach ascii or binary data, such as a BLOB record from a database.

Parameters
Name Type Description
$string string

String attachment data.

$filename string

Name of the attachment.

$encoding string

File encoding (see $Encoding).

$type string

File extension (MIME) type.

methodpublicAddrAppend(  $type,  $addr ) : string
inherited

Creates recipient headers.

Inherited from: \PHPMailer::AddrAppend()
Parameters
Name Type Description
$type
$addr
Returns
Type Description
string
Details
Access
public  
methodpublicAddrFormat(  $addr ) : string
inherited

Formats an address correctly.

Inherited from: \PHPMailer::AddrFormat()
Parameters
Name Type Description
$addr
Returns
Type Description
string
Details
Access
public  
methodpublicAttachAll( ) : string

Attaches all fs, string, and binary attachments to the message.

Returns an empty string on failure.

Returns
Type Description
string
Details
Access
private  
methodpublicBase64EncodeWrapMB( string $str ) : string
inherited

Correctly encodes and wraps long multibyte strings for mail headers without breaking lines within a character.

Inherited from: \PHPMailer::Base64EncodeWrapMB()

Adapted from a function by paravoid at http://uk.php.net/manual/en/function.mb-encode-mimeheader.php

Parameters
Name Type Description
$str string

multi-byte text to wrap encode

Returns
Type Description
string
Details
Access
public  
methodpublicClearAddresses( ) : void
inherited

Clears all recipients assigned in the TO array. Returns void.

Inherited from: \PHPMailer::ClearAddresses()
methodpublicClearAllRecipients( ) : void
inherited

Clears all recipients assigned in the TO, CC and BCC array. Returns void.

Inherited from: \PHPMailer::ClearAllRecipients()
methodpublicClearAttachments( ) : void
inherited

Clears all previously set filesystem, string, and binary attachments. Returns void.

Inherited from: \PHPMailer::ClearAttachments()
methodpublicClearBCCs( ) : void
inherited

Clears all recipients assigned in the BCC array. Returns void.

Inherited from: \PHPMailer::ClearBCCs()
methodpublicClearCCs( ) : void
inherited

Clears all recipients assigned in the CC array. Returns void.

Inherited from: \PHPMailer::ClearCCs()
methodpublicClearCustomHeaders( ) : void
inherited

Clears all custom headers. Returns void.

Inherited from: \PHPMailer::ClearCustomHeaders()
methodpublicClearReplyTos( ) : void
inherited

Clears all recipients assigned in the ReplyTo array. Returns void.

Inherited from: \PHPMailer::ClearReplyTos()
methodpublicCreateBody( ) : string
inherited

Assembles the message body. Returns an empty string on failure.

Inherited from: \PHPMailer::CreateBody()
Returns
Type Description
string
Details
Access
public  
methodpublicCreateHeader( ) : string
inherited

Assembles message header.

Inherited from: \PHPMailer::CreateHeader()
Returns
Type Description
string
Details
Access
public  
methodpublicEncodeFile(  $path,  $encoding = 'base64' ) : string
inherited

Encodes attachment in requested format. Returns an empty string on failure.

Inherited from: \PHPMailer::EncodeFile()
Parameters
Name Type Description
$path
$encoding
Returns
Type Description
string
Details
Access
public  
methodpublicEncodeHeader(  $str,  $position = 'text' ) : string
inherited

Encode a header string to best of Q, B, quoted or none.

Inherited from: \PHPMailer::EncodeHeader()
Parameters
Name Type Description
$str
$position
Returns
Type Description
string
Details
Access
public  
methodpublicEncodeQ(  $str,  $position = 'text' ) : string
inherited

Encode string to q encoding.

Inherited from: \PHPMailer::EncodeQ()
Parameters
Name Type Description
$str
$position
Returns
Type Description
string
Details
Access
public  
methodpublicEncodeQP(  $input = '', integer $line_max = 76,  $space_conv = false ) : string
inherited

Encode string to quoted-printable.

Inherited from: \PHPMailer::EncodeQP()
Parameters
Name Type Description
$input
$line_max integer

Number of chars allowed on a line before wrapping

$space_conv
Returns
Type Description
string
Details
Access
public  
methodpublicEncodeString(  $str,  $encoding = 'base64' ) : string
inherited

Encodes string to requested format. Returns an empty string on failure.

Inherited from: \PHPMailer::EncodeString()
Parameters
Name Type Description
$str
$encoding
Returns
Type Description
string
Details
Access
public  
methodpublicEndBoundary(  $boundary ) : void
inherited

Returns the end of a message boundary.

Inherited from: \PHPMailer::EndBoundary()
Parameters
Name Type Description
$boundary
Details
Access
public  
methodprivateFixEOL(  $str ) : string
inherited

Changes every end of line from CR or LF to CRLF.

Inherited from: \PHPMailer::FixEOL()
Parameters
Name Type Description
$str
Returns
Type Description
string
Details
Access
private  
methodpublicGetBoundary(  $boundary,  $charSet,  $contentType,  $encoding ) : void
inherited

Returns the start of a message boundary.

Inherited from: \PHPMailer::GetBoundary()
Parameters
Name Type Description
$boundary
$charSet
$contentType
$encoding
Details
Access
public  
methodpublicGetMailMIME( ) : string
inherited

Returns the message MIME.

Inherited from: \PHPMailer::GetMailMIME()
Returns
Type Description
string
Details
Access
public  
methodpublicHasMultiBytes( string $str ) : bool
inherited

Checks if a string contains multibyte characters.

Inherited from: \PHPMailer::HasMultiBytes()
Parameters
Name Type Description
$str string

multi-byte text to wrap encode

Returns
Type Description
bool
Details
Access
public  
methodpublicHeaderLine(  $name,  $value ) : void
inherited

Inherited from: \PHPMailer::HeaderLine()
Parameters
Name Type Description
$name
$value
methodpublicInlineImageExists( ) : bool
inherited

Returns true if an inline attachment is present.

Inherited from: \PHPMailer::InlineImageExists()
Returns
Type Description
bool
Details
Access
public  
methodpublicIsError( ) : bool
inherited

Returns true if an error occurred.

Inherited from: \PHPMailer::IsError()
Returns
Type Description
bool
Details
Access
public  
methodpublicIsHTML( bool $bool ) : void
inherited

Sets message type to HTML.

Inherited from: \PHPMailer::IsHTML()
Parameters
Name Type Description
$bool bool
methodpublicIsMail( ) : void
inherited

Sets Mailer to send message using PHP mail() function.

Inherited from: \PHPMailer::IsMail()
methodpublicIsQmail( ) : void
inherited

Sets Mailer to send message using the qmail MTA.

Inherited from: \PHPMailer::IsQmail()
methodpublicIsSMTP( ) : void
inherited

Sets Mailer to send message using SMTP.

Inherited from: \PHPMailer::IsSMTP()
methodpublicIsSendmail( ) : void
inherited

Sets Mailer to send message using the $Sendmail program.

Inherited from: \PHPMailer::IsSendmail()
methodpublicLang(  $key ) : string
inherited

Returns a message in the appropriate language.

Inherited from: \PHPMailer::Lang()
Parameters
Name Type Description
$key
Returns
Type Description
string
Details
Access
private  
methodpublicMailSend(  $header,  $body ) : bool
inherited

Sends mail using the PHP mail() function.

Inherited from: \PHPMailer::MailSend()
Parameters
Name Type Description
$header
$body
Returns
Type Description
bool
Details
Access
public  
methodpublicMsgHTML(  $message,  $basedir = '' ) : \$message
inherited

Evaluates the message and returns modifications for inline images and backgrounds

Inherited from: \PHPMailer::MsgHTML()
Parameters
Name Type Description
$message
$basedir
Returns
Type Description
\$message
Details
Access
public  
methodprivateRFCDate( ) : string
staticinherited

Returns the proper RFC 822 formatted date.

Inherited from: \PHPMailer::RFCDate()
Returns
Type Description
string
Details
Access
private  
methodpublicSecureHeader( string $str ) : string
inherited

Strips newlines to prevent header injection.

Inherited from: \PHPMailer::SecureHeader()
Parameters
Name Type Description
$str string

String

Returns
Type Description
string
Details
Access
public  
methodpublicSend( ) : bool
inherited

Creates message and assigns Mailer. If the message is not sent successfully then it returns false. Use the ErrorInfo variable to view description of the error.

Inherited from: \PHPMailer::Send()
Returns
Type Description
bool
methodpublicSendmailSend(  $header,  $body ) : bool
inherited

Sends mail using the $Sendmail program.

Inherited from: \PHPMailer::SendmailSend()
Parameters
Name Type Description
$header
$body
Returns
Type Description
bool
Details
Access
public  
methodpublicServerHostname( ) : string
inherited

Returns the server hostname or 'localhost.localdomain' if unknown.

Inherited from: \PHPMailer::ServerHostname()
Returns
Type Description
string
Details
Access
private  
methodpublicSetError(  $msg ) : void

overloads class.phpmailer's SetError() method so that we can log errors in sugarcrm.log

Returns void.

Parameters
Name Type Description
$msg
methodpublicSetLanguage( string $lang_type = 'en', string $lang_path = 'language/' ) : bool
inherited

Sets the language for all class error messages. Returns false if it cannot load the language file. The default language type is English.

Inherited from: \PHPMailer::SetLanguage()
Parameters
Name Type Description
$lang_type string

Type of language (e.g. Portuguese: "br")

$lang_path string

Path to the language file directory

Returns
Type Description
bool
Details
Access
public  
methodpublicSetMessageType( ) : void
inherited

Sets the message type.

Inherited from: \PHPMailer::SetMessageType()
Details
Access
public  
methodpublicSetWordWrap( ) : void
inherited

Set the body wrapping.

Inherited from: \PHPMailer::SetWordWrap()
Details
Access
public  
methodpublicSign(  $cert_filename, string $key_filename, string $key_pass ) : void
inherited

Set the private key file and password to sign the message.

Inherited from: \PHPMailer::Sign()
Parameters
Name Type Description
$cert_filename
$key_filename string

Parameter File Name

$key_pass string

Password for private key

Details
Access
public  
methodpublicSmtpClose( ) : void
inherited

Closes the active SMTP session if one exists.

Inherited from: \PHPMailer::SmtpClose()
methodpublicSmtpConnect( ) : bool

Initiates a connection to an SMTP server. Returns false if the operation failed.

Returns
Type Description
bool
methodpublicSmtpSend(  $header,  $body ) : bool
inherited

Sends mail via SMTP using PhpSMTP (Author: Chris Ryan). Returns bool. Returns false if there is a bad MAIL FROM, RCPT, or DATA input.

Inherited from: \PHPMailer::SmtpSend()
Parameters
Name Type Description
$header
$body
Returns
Type Description
bool
Details
Access
public  
methodpublicSugarPHPMailer( ) : void

Sole constructor

methodpublicTextLine(  $value ) : string
inherited

Returns a formatted mail line.

Inherited from: \PHPMailer::TextLine()
Parameters
Name Type Description
$value
Returns
Type Description
string
Details
Access
public  
methodpublicUTF8CharBoundary( string $encodedText, int $maxLength ) : int
inherited

Finds last character boundary prior to maxLength in a utf-8 quoted (printable) encoded string.

Inherited from: \PHPMailer::UTF8CharBoundary()

Original written by Colin Brown.

Parameters
Name Type Description
$encodedText string

utf-8 QP text

$maxLength int

find last character boundary prior to this length

Returns
Type Description
int
Details
Access
public  
methodpublicWrapText(  $message,  $length,  $qp_mode = false ) : string
inherited

Wraps message for use with mailers that do not automatically perform wrapping and for quoted-printable.

Inherited from: \PHPMailer::WrapText()

Original written by philippe.

Parameters
Name Type Description
$message
$length
$qp_mode
Returns
Type Description
string
Details
Access
public  
methodpublic_mime_types(  $ext = '' ) : \mime
inherited

Gets the mime type of the embedded or inline image

Inherited from: \PHPMailer::_mime_types()
Parameters
Name Type Description
$ext
Returns
Type Description
\mime type of ext
Details
Access
public  
methodpublicgetFile( string $filename ) : void
inherited

Read a file from a supplied filename and return it.

Inherited from: \PHPMailer::getFile()
Parameters
Name Type Description
$filename string

Parameter File Name

Details
Access
public  
methodpublichandleAttachments( \notes $notes ) : void

Parameters
Name Type Description
$notes \notes

array of note beans

methodpublicprepForOutbound( ) : void

handles Charset translation for all visual parts of the email.

methodpublicreplaceImageByRegex( string $regex, string $local_prefix, bool $object = false ) : void

Replace images with locations specified by regex with cid: images and attach needed files

Parameters
Name Type Description
$regex string

Regular expression

$local_prefix string

Prefix where local files are stored

$object bool

Use attachment object

methodpublicset( string $name, mixed $value = '' ) : void
inherited

Set (or reset) Class Objects (variables)

Inherited from: \PHPMailer::set()

Usage Example: $page->set('X-Priority', '3');

Parameters
Name Type Description
$name string

Parameter Name

$value mixed

Parameter Value NOTE: will not work with arrays, there are no arrays to set/reset

Details
Access
public  
methodpublicsetMailer( ) : void

Prefills outbound details

methodpublicsetMailerForSystem( ) : void

Prefills mailer for system

Documentation was generated by DocBlox 0.18.1.