How to check whether the WordPress Web site supports mail mail features

Source: Internet
Author: User
Tags php file php code

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.

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.