sell website making service

Why WordPress website is not sending any emails?

One of the WordPress websites I maintain had a problem. This problem is very very common amongst my clients also. The problem is website is not sending emails to Gmail or any other assigned email address. And I had the solution.

Why WordPress website is not sending any emails?

Why WordPress website is not sending any emails?

If your WordPress website is not sending emails, the issue could be due to hosting limitations, incorrect configurations, spam filters, plugin conflicts, theme issues, blocked email ports, email queuing problems, or misconfigured contact forms. By systematically checking each of these areas and using the solutions provided, you should be able to identify and resolve the issue.

Why do websites need to send emails?

Why WordPress website is not sending any emails?

Any WordPress website or any other platform website needs to send emails for the following reasons:

  1. User Verification: Confirm email addresses and activate new accounts.
  2. Password Recovery: Allow users to reset forgotten passwords.
  3. Transactional Updates: Send order confirmations and shipping notifications.
  4. User Engagement: Distribute newsletters, promotional offers, and event reminders.
  5. Security Alerts: Notify users of suspicious activity and provide two-factor authentication codes.
  6. Feedback Requests: Collect user feedback and survey responses.
  7. Community Notifications: Inform users about social interactions, such as messages and comments.
  8. Legal Compliance: Communicate updates to terms of service and privacy policies.

Emails enhance user experience, improve security, ensure compliance, and drive engagement.

When a website needs to communicate with a user it sends an email.

Why you should use a ready-made WordPress plugin?

There are many possibilities as to why your WordPress website is not sending emails and I had to manually check all the steps. This is a very long process and not effective unless you are an expert developer. So ready-made plugin is the best solution.

Which WordPress plugin is best to help send email from a WordPress website?

Why WordPress website is not sending any emails?

I use the “WP Mail SMTP Lite” WordPress plugin, it solves all the problems literally and processes your website’s emails smoothly.

How to configure the WP Mail SMTP plugin?

Why WordPress website is not sending any emails?

It was pretty hard at the beginning to configure, there was no helpful guide, and guide and Google Cloud console kept changing. I initially searched YouTube for tutorials and configured plugins on my own. Later WP Mail SMTP published an official guide on how to configure the WP Mail SMTP plugin you can check the link here https://wpmailsmtp.com/docs/how-to-set-up-the-gmail-mailer-in-wp-mail-smtp/

Why WordPress website is not sending any emails?

I successfully configured the plugin and it’s working fine, sending all the emails from my server to my gmail.

If you need help regarding any WordPress/website issues, you can contact me.

PHP program to delete all files in a folder from server

PHP program to delete all files in a folder from server

Imagine a remote control to delete all files in server from a particular folder as soon you type that url and hit enter.

Here is the code:

<?php 
// PHP program to delete all files 
// from a folder 
  
// Folder path to be flushed 
$folder_path = 'getcwd();'; 
  
// Assigning files inside the directory 
$dir = new DirectoryIterator(dirname($folder_path)); 
  
// Deleting all the files in the list 
foreach ($dir as $fileinfo) { 
      
    if (!$fileinfo->isDot()) { 
  
        // Delete the given file 
        unlink($fileinfo->getPathname()); 
    } 
} 
?> 

Where to put this code?

Make a PHP file like example.php and put this file inside the folder with all the files you want to delete.

For example you want to delete all files under folder “website_staging” and url of the the folder is “example2.com/wp-content/website_staging” , put that file example.php inside “website_staging”

How to run the code?

Type in URL “example2.com/wp-content/website_staging /example.php” and hit enter, you will see all files under folder “website_staging” is gone.

Share this article if it helps.

Video on PHP program to delete all files in a folder from server

Wordfence plugin detected malicious file rss-xml.php

On auto scan Wordfence security plugin pointed out a hacked file. From cloudways help they were saying about such file that is taking server resources, maybe this is the file after hackers attacked the site continuously and making the server CPU usage high for last few weeks.

Screenshots given below:

Wordfence plugin detected malicious file rss-xml.php
Wordfence plugin detected malicious file rss-xml.php

Check Most Recent Posts