\Mailer

Permet l'envoi d'emails

Summary

Methods
Properties
Constants
send()
sendStaff()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

send()

send(  $from_name,   $from_email,   $to_email,   $subject,   $body, boolean|false  $is_html = false, array  $attached = array(), array  $stream = array(), array  $functions = array()) : boolean

Envoie un e-mail en fonction des paramètres renseignés en entrée et retourne true en cas de réussite, false sinon.

Parameters

$from_name

Nom de l'émetteur.

$from_email

Email de l'émetteur.

$to_email

Email du destinataire.

$subject

Sujet de l'e-mail.

$body

Corps de l'e-mail.

boolean|false $is_html

True si l'HTML est actif.

array $attached

Liste des éléments attachés. ([noms]=>[chemins])

array $stream

Liste des éléments attachés en mode stream. ([noms]=>[streams])

array $functions

Liste de fonctions à appliquer à l'objet PHPMAILER

Returns

boolean

sendStaff()

sendStaff(string  $subject, string  $body, boolean  $is_html = true, array  $attached = array(), array  $stream = array(), array  $functions = array(), string  $tpl = null) : boolean

Envoie un e-mail au staff

Parameters

string $subject

Sujet de l'e-mail.

string $body

Corps de l'e-mail.

boolean $is_html

True si l'HTML est actif.

array $attached

Liste des éléments attachés. ([noms]=>[chemins])

array $stream

Liste des éléments attachés en mode stream. ([noms]=>[streams])

array $functions

liste de fonctions à appliquer à l'objet PHPMAILER

string $tpl

le fichier template à utiliser

Returns

boolean