QQ Free Enterprise Email application Configuration

Source: Internet
Author: User
Tags echo message php script

For small businesses, the free enterprise mailbox is a good choice, save the server costs and personnel maintenance costs. Here to say, QQ free enterprise mailbox. If you want to build your own enterprise Post office, please refer to: CentOS extmail postfix nginx Installation configuration detailed


First, registered account
URL: http://exmail.qq.com
Register your account, you must have your own domain name.


Second, add members
Here is a point to note that is to add members, you set the password, the use of Phpmailer is not to send mail. After this member login, reset password, can use Phpmailer to send mail.


Third, add DNS
51yip.com. In MX 5 mxbiz1.qq.com.
51yip.com. In MX ten mxbiz2.qq.com.
If you do not have your own DNS server, add two MX records, the host domain name does not fill in the line. Take Dnspod as an example.

MX dnspod Configuration


Four, test the PHP script

<?php  
include "phpmailer/class.phpmailer.php";  
  
function Send_mail ($frommail, $tomail, $subject, $body, $ccmail, $bccmail) {  
    $mail = new Phpmailer ();  
    $mail->issmtp ();  
    $mail->smtpdebug;  
    $mail->host = "smtp.qq.com"; QQ Enterprise Mailbox To change: $mail->host = "smtp.exmail.qq.com"; 
    $mail->smtpauth = true;  
    $mail->port =;  
    $mail->username = "admin@51yip.com";  
    $mail->password = "Hu Jintao";  
  
    $mail->addreplyto ($frommail, ' Tankzhang ');  
    $mail->addaddress ($tomail);  
    $mail->setfrom ($frommail, ' Tankzhang ');  
  
    $mail->ishtml (true);  
    $mail->subject = $subject;  
    $mail->msghtml ($body);  
  
    if (! $mail->send ())  
    {  
    echo message failed to send. <p> ";  
    echo "Error Reason:". $mail->errorinfo;  
    Exit;  
    } Else{  
        echo "Success";  
    }  
  
$result = Send_mail ("admin@51yip.com", "95219454@qq.com", "Test", "Test", "", "");  
? >


Take a look at the effect chart:

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.