Procedural File: mail.lib.inc.php
Source Location: /main/inc/lib/mail.lib.inc.php
Page Details:
Includes:
require(api_get_path(INCLUDE_PATH).'lib/phpmailer/class.phpmailer.php') [line 2]
require_once(api_get_path(INCLUDE_PATH).'/conf/mail.conf.php') [line 3]
api_mail [line 22]
returns api_mail(
recipient_name $recipient_name, recipient_email $recipient_email, message $subject, subject $message, [ $sender_name = ""], [ $sender_email = ""], [ $extra_headers = ""])
|
|
Sends email using the phpmailer class Sender name and email can be specified, if not specified name and email of the platform admin are used
Tags:
Parameters
| recipient_name |
$recipient_name |
name of recipient |
| recipient_email |
$recipient_email |
email of recipient |
| message |
$subject |
email body |
| subject |
$message |
email subject |
| |
$sender_name |
|
| |
$sender_email |
|
| |
$extra_headers |
|
api_mail_html [line 112]
returns api_mail_html(
string $recipient_name, string $recipient_email, string $subject, string $message, [string $sender_name = ""], [string $sender_email = ""], [array $extra_headers = null])
|
|
Sends an HTML email using the phpmailer class (and multipart/alternative to downgrade gracefully) Sender name and email can be specified, if not specified name and email of the platform admin are used
Tags:
Parameters
| string |
$recipient_name |
name of recipient |
| string |
$recipient_email |
email of recipient |
| string |
$subject |
email subject |
| string |
$message |
email body |
| string |
$sender_name |
sender name |
| string |
$sender_email |
sender e-mail |
| array |
$extra_headers |
extra headers in form $headers = array($name => $value) to allow parsing |
|