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: