Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

send_mail()

Description

Send a mail - but correctly encode the message/subject in quoted-printable UTF-8.

NOTE: $from is the name of the user sending the email,
while $from_name is the name that should be put in the header, which can be the system name
It is necessary to specify two since in all cases the email should be able to contain the user's name.

Old mail function remains the same to avoid possible issues with phpmailer
send_mail_phpmailer allows for the use of text and html (multipart) emails,
and the use of email templates in Manage Content.

Parameters

ColumnTypeDefaultDescription
$email string
$subject string
$message string
$from string ""
$reply_to string ""
$html_template string ""
$templatevars string null
$from_name string ""
$cc string ""
$bcc string ""

Return

void

This article was last updated 5th July 2020 05:35 Europe/London time based on the source file dated 3rd July 2020 16:53 Europe/London time.