Dear Users,
Please be informed that the PHP mail()
function has been disabled on our server for security and performance reasons. To ensure your WordPress website continues to send emails properly, you must configure the WP Mail SMTP plugin to handle outgoing emails.
Below are the step-by-step instructions to set up the WP Mail SMTP plugin:
Step 1: Install the WP Mail SMTP Plugin
- Log in to your WordPress admin dashboard.
- Navigate to Plugins > Add New.
- In the search bar, type "WP Mail SMTP" and press Enter.
- Locate the WP Mail SMTP by WPForms plugin and click Install Now.
- Once the installation is complete, click Activate.
Step 2: Configure WP Mail SMTP Settings
- After activation, go to WP Mail SMTP under the Settings menu in your WordPress dashboard.
- Fill in the required fields:
- From Email: Enter the email address you want to send emails from.
- From Name: Enter the name you want your emails to display as being sent from.
- Scroll down to the Mailer section and select your preferred mailer service. We recommend using one of the following options:
- SMTP: This option allows you to connect your website to an external SMTP server like Gmail, SendGrid, or any other email service provider.
- Sendinblue: Use this if you have a Sendinblue account.
- Mailgun: Use this if you have a Mailgun account.
- Amazon SES: Use this if you have an Amazon SES account.
Step 3: Set Up SMTP Configuration (If Using SMTP)
-
If you choose the SMTP option, you will need to configure the following settings:
- SMTP Host: Enter your SMTP server address (e.g.,
smtp.gmail.com
for Gmail). - SMTP Port: Enter the port number (e.g.,
587
for TLS,465
for SSL). - Encryption: Choose between TLS or SSL depending on your SMTP provider's recommendation.
- Authentication: Set this to "Yes".
- SMTP Username: Enter your email address or username.
- SMTP Password: Enter your email password.
- SMTP Host: Enter your SMTP server address (e.g.,
-
Important: If you are using a Gmail account, you will need to either enable "Less secure apps" or generate an App Password in your Google Account. Follow one of the methods below:
Option 1: Enable Less Secure Apps
- Go to your Google Account at myaccount.google.com.
- Navigate to Security on the left-hand menu.
- Scroll down to the Less secure app access section.
- Click on Turn on access (not recommended) and toggle the switch to ON.
Option 2: Generate an App Password (Recommended)
- Go to your Google Account at myaccount.google.com.
- Navigate to Security on the left-hand menu.
- Ensure that 2-Step Verification is turned on under the Signing in to Google section.
- Under Signing in to Google, click on App passwords.
- Select Mail and Other (Custom name) under the Select app and Select device dropdowns respectively, then click Generate.
- Copy the generated App Password and use it as the SMTP Password in the WP Mail SMTP settings.
-
After entering all the details, click the Save Settings button.
Step 4: Test the Email Configuration
- Navigate to the Email Test tab within the WP Mail SMTP settings.
- Enter an email address to send a test email to, and click Send Email.
- If the test is successful, you will receive the test email. If not, recheck your configuration settings.
Step 5: Monitor Email Deliverability
It's recommended to periodically monitor your email deliverability to ensure everything is functioning as expected. You can use tools like WP Mail Logging to keep a log of all outgoing emails.
Conclusion
By following these steps, you can ensure that your WordPress site continues to send emails reliably even with the PHP mail()
function disabled. If you encounter any issues during the setup, please contact our support team for assistance.
Thank you for your attention and cooperation.
Best regards,
Team WSP
Thursday, August 1, 2024