PHP Mail Extension: mailpp are you still using PHPMailer? Out!
Mailpp is a PHP extension written in C ++. it is used to send emails.
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.
Easy to use:
$ 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 email!
"); $ OK = $ mailpp-> send_by_ssl ();
Mailpp provides three sending methods: send, send_by_ssl, and send_by_tls. You can choose one based on the specific configuration.
: Http://www.wqbuyer.com/demo/blog/3.html.