// Set the To: recipient (s)
If (is_array ($ toList )){
$ This-> to = join ($ toList ,",");
} Else {
$ This-> to = $ toList;
}
// Set the Cc: recipient (s)
If (is_array ($ ccList) & sizeof ($ ccList )){
$ This-> cc = join ($ ccList ,",");
} Elseif ($ ccList ){
$ This-> cc = $ ccList;
}
// Set the Bcc: recipient (s)
If (is_array ($ bccList) & sizeof ($ bccList )){
$ This-> bcc = join ($ bccList ,",");
} Elseif ($ bccList ){
$ This-> bcc = $ bccList;
}
}
// Send the message; this is actually just a wrapper
// PHP's mail () function; heck, it's PHP's mail function done right :-)
// You cocould override this method:
// (A) use sendmail directly
// (B) do SMTP with sockets
Function send (){
// Create the headers needed by PHP's mail () function
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.