What to do if Tencent's free enterprise email does not support custom domain login?

Publish: 2015-09-14 | Modify: 2015-09-14

Currently, major companies have launched free versions of enterprise email, such as NetEase, Alibaba Cloud, and Tencent. Enterprise email allows you to use your domain name as a suffix, making it more personalized and unique. Xiao Z's blog has been using Tencent enterprise email for sending emails. Unfortunately, the free version no longer supports logging in with a custom domain name like "mail.yourdomain.com".

To solve this problem, you only need a small PHP script. The only tools you need to prepare are: a top-level domain, an enterprise email account opened with Tencent and correctly configured DNS settings, and a virtual host or VPS that supports PHP. Let's get started with the specific steps.

一、Create the code

Copy the code below and save it as "index.php". Replace "xiaoz.me" with your own top-level domain that you used when setting up Tencent enterprise email.

<?php
$mail = file_get_contents("http://tel.exmail.qq.com/domain/xiaoz.me");
echo $mail;
?>

二、Bind the domain and configure DNS

If your virtual host supports subdomains, you need to create a subdirectory called "mail" (you can name it anything you like) and create a subdomain "mail.yourdomain.com" that points to the mail directory. Finally, set up the DNS record to resolve the "mail" host.

三、Upload the script

Use an FTP tool or file manager to upload the "index.php" file created in step one to the "mail" directory created in step two.

四、Test the access

If you haven't made any mistakes in the above steps, you can now test the access by entering your domain name, such as "mail.yourdomain.com". If you still have trouble, please contact Xiao Z for assistance on QQ.


Comments