WordPress mail function:
WordPress old already added a mail function, such as you login backstage password forgotten, you can build a station through WordPress registered mailbox to retrieve the password. This wordpress mail function, not only can help us retrieve the password, but also can help the WordPress webmaster to reply The user comments when the mail reminder, this greatly enhances the stationmaster and the user interaction.
Check Step:
Create a PHP file, the filename casually, here we named Mail_test.php.
Then, add the following PHP code to this file:
The code is as follows |
Copy Code |
<?php $txt = "Hello"; The following email address is changed to your $mail = ' 909198831@qq.com '; Send mail Mail ($mail, "My subject", $txt); Echo ' sent the message successfully! ' ?> |
Upload this mail_test.php file to your WordPress site root directory.
In the browser's address bar type "http://your domain name/mail-test.php", click Open. The page displays "successfully sent message". At this point, you open your mailbox, check it out, have not received from your site sent over the mail.
If you receive it, your site supports mail functionality. If you do not receive it, your site does not support mail or does not open mail functionality.
If the mail function is not turned on, we open the mail function. If the mail function is not supported, we will install this mail function module for the WordPress website.
Of course, if your site space is a server or VPS (you can control it yourself), you can install or open it yourself. If your site space is a virtual host, it is only to find your space provider to help you solve. How to open and how to install, we will introduce in the following article.