Email. class. php: how to send BCC emails

Source: Internet
Author: User
Email. class. php mail class, how to send BCC Mail email. class. php must be a friend of PHP. now, if I send a large number of recipients, I want to send emails by BCC, I don't know how to set the source code of the class:/* MainFunction */functionsendmail ($ to, $ from, email. class. php mail class, how to send BCC
The e-mail. class. php class must be familiar to PHP friends. now, if I send a group of emails, many recipients will appear,
Now I want to send emails by BCC. I don't know how to set it.
This is the source code of the class:
/* Main Function */
Function sendmail ($ to, $ from, $ subject = "", $ body = "", $ mailtype, $ cc = "", $ bcc = "", $ additional_headers = "")
When I call:
$ Smtp-> sendmail ($ smtpemailto, $ smtpusermail, $ mailsubject, $ mailbody, $ mailtype );
The problem arises. I don't know why $ bcc should be set. its default value is "". I don't know whether it should be set to "bcc" or "true ".

I also asked Du Niang, but none of the others used this class. the appearance of online quiet waited for Niu Er.


------ Solution --------------------
$ Smtp-> sendmail ($ to, $ from, $ subject = "title", $ body = "content", $ mailtype, $ cc = "person who wants to cc ", $ bcc = "the person who wants bcc", $ additional_headers = "I don't know ")

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.