PHP uses SMTP class to implement email _php tips

Source: Internet
Author: User
Tags server port

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

Related Article

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.