PHP Mail Extension: MAILPP

Source: Internet
Author: User

Are you still using Phpmailer? It's out!

MAILPP is a php extension written in C + + designed to perform the task of sending mail.

Class MAILPP {public    function __construct ();    Public Function Set_host_port ($host, $port);    Public Function Set_user_password ($user, $password);    Public Function Set_content_type ($content _type);    Public Function Set_subject ($subject);    Public Function Set_from ($from, $fromname);    TOTYPE:{PRIMARY,CC,BCC} public    function set_to ($to, $totype, $toname);    Public Function Set_body ($body);    Public function Send ();    Public function Send_by_tls ();    Public function Send_by_ssl ();            }

interface at a glance.

The usage is simple:
$MAILPP = new MAILPP (), $MAILPP->set_host_port ($__config__["Email" ["SMTP"], $__config__["email" ["port"]); Mailpp->set_user_password ($__config__["Email" ["User"], $__config__["email" ["password"]); $MAILPP->set_ Content_Type ("HTML"), $MAILPP->set_from ($__config__["Email" ["from"], $__config__["email" ["name"]); $MAILPP- >set_to ("* * * * @qq. com", "Bcc", "QQ1"), $MAILPP->set_to ("****@163.com", "Bcc", "163"), $MAILPP->set_to ("****@ Qq.com "," CC "," QQ2 "), $MAILPP->set_to (" * * * @gmail. com "," PRIMARY "," Gmail "), $MAILPP->set_subject (" cc, bcc "); $MAILPP->set_body ("

MAILPP offers three ways to send: Send,send_by_ssl, and Send_by_tls. Can be selected according to the specific configuration.

: http://www.wqbuyer.com/demo/blog/3.html.


PHP Mail Extension: MAILPP

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.