SMTP class Send mail method is simple and stable, a few lines of simple configuration can send mail, is not very looking forward to try it!
Here's the core code:
<?php require_once "email.class.php"; Configuration information ******************************** $smtpserver = "smtp.126.com";//SMTP Server $smtpserverport = 25;//SMTP Server Port $smtpusermail = "new2008oh@126.com";//smtp server's user mailbox $smtpemailto = $_post[' toemail '];//sent to whom $smtpuser = " New2008oh "//SMTP server's user account $smtppass =" Your mailbox password ";//smtp server's user password $mailtitle = $_post[' title '];//Mail Subject $mailcontent ="
Effect screenshot Appreciation:
This article share the method is simple and easy to understand, hoped can help everybody.
The following is to provide you with the source code download address: PHP Use SMTP class to implement e-mail delivery