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