Alibabacloud.com offers a wide variety of articles about php send mail to multiple addresses, easily find your php send mail to multiple addresses information here online.
1. Use the Mail () function
Nothing to say, is to use the system's own SMTP system to send, is generally used sendmail to hair. This varies according to each system. Use the reference manual.
2. Use the form of piping
The test was successful
In PHP, you provide a mail-sending function mail function that sends e-mail directly in your program, but it requires the server to support SendMailOr you must set up a mail-sending server that does not require relaying, but it is almost impossible
Copy CodeThe code is as follows:
Class Email {
---setting global variables
var $mailTo = ""; Recipient
var $mailCC = ""; Cc
var $mailBCC = ""; Secret CC
var $mailFrom = ""; Sender
var $mailSubject = ""; Theme
var $mailText = ""; Text-Formatted
////////////////////////////////////////////////////////////
Emailclass 0.5
Class for sending mail
//
Paul Schreiber
Php@paulschreiber.com
http://paulschreiber.com/
//
Parameters
// ----------
-Subject, message, SenderName, Senderemail and toList
Php Chinese network (www.php.cn) provides the most comprehensive basic tutorial on programming technology, introducing HTML, CSS, Javascript, Python, Java, Ruby, C, PHP, basic knowledge of MySQL and other programming languages. At the same time,
PHPMailer uses QQ mail to send mails. phpmailer can send mails.
The example in this article shares with you the specific code for sending mails using PHPMailer via QQ mail for your reference. The specific content is as follows:
/*** Place an order
Php sends emails in multiple forms (the phpmailer class in the mailqmail mail system ). 1. there is nothing to say about using the mail () function, that is, using the system's built-in smtp system for sending, generally using sendmail for sending.
Summary: Writing a mail system or mailing list program is a big branch of PHP application, while PHP provides a simple function for sending emails, in practice it involves sending mail with attachments, testing the validity of the email address that
1. Use the mail () function
There is nothing to mention, that is, sending via the system's built-in smtp system, generally using sendmail. This depends on different systems. User reference manual.
2. MPS queue format
The test was successful
First, Introduction
Mail () function, you can use this function to send e-mail.
Demand
In order to be able to use the mail function, PHP must have the power to compile and send binary mail files in your system. If you use other mail programs, such
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.