jMailer

Extends \PHPMailer

jMailer based on PHPMailer - PHP email transport class

package

jelix

subpackage

utils

author

Laurent Jouanneau

contributor

Kévin Lepeltier

copyright

2006-2008 Laurent Jouanneau

copyright

2008 Kévin Lepeltier

since 1.0b1
see

Methods

initialize some member

__construct() 

copyMail

copyMail( $header,  $body) 

Arguments

$header

$body

CreateHeader

CreateHeader() 

debugOverrideReceivers

debugOverrideReceivers() 

store mail in file instead of sending it

FileSend( $header,  $body) : boolean
access

public

Arguments

$header

$body

Response

boolean

Find the name and address in the form "name<address@hop.tld>"

getAddrName(string $address, string $kind = false) : \array(

Arguments

$address

string

$kind

string

One of 'to', 'cc', 'bcc', or 'ReplyTo'

Response

\array(

$name, $address )

getStorageFile

getStorageFile() 

Convert HTML content to Text.

html2textKeepLinkSafe(string $html) : string

Sets Mailer to store message into files instead of sending it useful for tests.

IsFile() : void

lang

lang( $key) 

Arguments

$key

MailSend

MailSend( $header,  $body) 

Arguments

$header

$body

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.

Send() : boolean

Response

boolean

sendmailSend

sendmailSend( $header,  $body) 

Arguments

$header

$body

SetLanguage

SetLanguage( $lang_type = 'en',  $lang_path = 'language/') 

Arguments

$lang_type

$lang_path

smtpSend

smtpSend( $header,  $body) 

Arguments

$header

$body

Adds a Tpl référence.

Tpl(string $selector, boolean $isHtml = false,  $html2textConverter = false,  $htmlImageBaseDir = '') : \jTpl

Arguments

$selector

string

$isHtml

boolean

true if the content of the template is html. IsHTML() is called.

$html2textConverter

$htmlImageBaseDir

Response

\jTpl

the template object.

Constants

DEBUG_RECEIVER_CONFIG

DEBUG_RECEIVER_CONFIG

DEBUG_RECEIVER_USER

DEBUG_RECEIVER_USER

Properties

the selector of the template used for the mail.

bodyTpl : string

Use the Tpl() method to change this property

var

Type(s)

string

defaultLang

defaultLang : 

Type(s)

the path of the directory where to store mails if mailer is file.

filePath : 

Type(s)

indicates if mails should be copied into files, so the developer can verify that all mails are sent.

copyToFiles : 

Type(s)

htmlImageBaseDir

htmlImageBaseDir : 

Type(s)

html2textConverter

html2textConverter : 

Type(s)

Debug mode. If activated, debugReceivers should be filled

debugModeEnabled : boolean
var

Type(s)

boolean

replacement for the From header

debugFrom : string
var

replacement for the From header

Type(s)

string

replacement for the From header

debugFromName : string
var

replacement for the From header

Type(s)

string

combination of DEBUG_RECEIVER_*

debugReceiversType : integer
var

combination of DEBUGRECEIVER*

Type(s)

integer

List of addresses to send all emails. Addresses in "To"

debugReceivers : array
var

Type(s)

array

List of valid addresses

debugReceiversWhiteList : array

Receivers for 'To' having these emails will not be replaced by debugReceivers Receivers for 'Cc' and 'Bcc' having these emails will not be removed

var

Type(s)

array

debugSubjectPrefix

debugSubjectPrefix : 

Type(s)

debugBodyIntroduction

debugBodyIntroduction : 

Type(s)

tpl

tpl : 

Type(s)

debugOriginalValues

debugOriginalValues : 

Type(s)