Skip to main content Help Control Panel

Aubagne HipHop

Tout le Hip Hop d'Aubagne et des alentours

Home «   Server software «  

Documentation: shared/mailer.php

class Mailer - The library to send electronic messages

This script is a reference file of this system.

Licence: GNU Lesser General Public License

Auteurs:

notify() - Send an email message

function notify($to, $subject, $message)

This function supports automated posts of e-mail message to back-office administrators.

First of all, e-mail services have to be explicitly activated in the main configuration panel, at control/configure.php.

Second, this function is able to authenticate to the mail server using POP3 before engaging SMTP. This is the standard method used at ovh to avoid spam.

Third, long lines of the message are wrapped according to Dan's suggestion.

Messages are sent using utf-8, and are base64-encoded.

Voir aussi:

post() - Send an email message

function post($from, $to, $subject, $message, $headers='', $debug='shared/mailer.php')



This function supports automated posts of e-mail message.

First of all, e-mail services have to be explicitly activated in the main configuration panel, at control/configure.php.

Second, this function is able to authenticate to the mail server using POP3 before engaging SMTP. This is the standard method used at ovh to avoid spam.

Third, long lines of the message are wrapped according to Dan's suggestion.

Messages are sent using utf-8, and are base64-encoded.

For bulk posts, transmit an array of strings instead of a string to list recipients.

This function returns the number of successful posts, and adds one line to $context['error'] for each error encountered.

Voir aussi:

Reste à faire:

Tools
Browse the source of this script
Server software