Archive

Contact Form 7 Not Sending Emails

The “Contact Us” form is one of the most important parts of a website building irrespective of the platform used for building the website. It let the visitors contact website owners and put their queries.

As we know, WordPress is the largest platform for building websites. Just like that, contact form 7 is the best plugin that is used to create the contact us page on the sites developed using WordPress.

Sometimes, people facing problems like not receiving emails that visitors sent by using the contact us form. Newbies mostly face this issue because they don’t have the exact idea of how it works at its best.

Therefore, visitors can’t contact website owners because they receive the alert of not sending the email. Sometimes they receive a successful delivery message, but they never reply because they never received the email.
Let’s discuss this matter in detail and find out the possible reasons and its solution.

Why Contact Form 7 Is Not Sending Emails?

In case you have an issue with contact form 7 not working. Then, you have to analyze a couple of basic reasons before going in-depth, i.e., the WordPress server and the hosting server. If both these are working properly, then there is something with other things.

There are two main possible reasons for Contact Form 7 Not Sending Emails and stopped working:

1. Hosting Server Doesn’t Support PHP Mail Function

Contact form 7 uses the PHP mail function for sending or receiving emails. Some hosting servers don’t support the PHP mail function; that’s why first of all, you have to check the availability of the PHP mail function.

If this is the reason, do contact your hosting provider and ask the representative to solve the issue.

2. Email Spoofing

It is the most common problem faced by people, but due to the lack of information about the plugin’s settings. It happens because many people, especially newbies, use the default settings of the plugin.
As visitors send you an email through the contact us form, you receive an email from “contact form 7” about receiving email.

Contact form 7 sends notifications to the website owner by using the email address of the contacting person. The email is marked as spoofing because the sender’s email address does not belong to the site domain, but it is sent from your site.

Email spoofing is similar to spam emails, and it goes to the junk folder instead of receiving these in the inbox. You can easily get out of this problem by manipulating the settings and mark such email as not spoofing. Then you can receive notifications from the contacting person’s email.

Solution Of Contact Form 7 Stopped Working (Email Spoofing)
The only solution to the WordPress contact form not working is changing from settings.

As we mentioned earlier, email spoofing happens due to the use of default settings of contact form 7, and it doesn’t allow email masking. Even you are receiving emails after using default settings, then email spoofing can happen any time in the future.

Follow the below-mentioned steps to solve the issue:

Step # 1,
First of all, login to cPanel of your web hosting and look for the email tab in the dashboard. Click on the Email tab, and you can see a new window there, and you can see the “create” button.
You need to create a new email address with your website’s domain name because you have to use it as a “From” email in the contact form. It important to select the domain name of the website is selected while creating the email address.

Step # 2,
After creating the new email address, go to plugin (contact form 7) settings in the dashboard of WordPress. There you can see a “From” field in the mail tab. Provide the new email address that you created just now in the field.
Use additional header settings as Reply-To: [your-email], and hit the save button to save the final version.
You can send a test mail using the contact us page, you receive it in your inbox, and it stops marked emails as a spoof.

Conclusion
Contact form 7 is the best plugin that is widely used by websites for contact with their visitors. It works great but setting up the contact us form is somehow tricky.

But if you follow the guidelines that we discussed above, you can contact your visitors at the right time.

Read about how to setup a cron job

How to move wordpress site to the new domain

We are covering the complete about how to move wordpress site to the new domain name. Read the complete article it will help you to move your domain from one domain to another domain name.

Are you looking for an easy and simple way to move your WordPress site to a new domain? Do you think moving a website to a new domain is a challenging task? 

My answer would be a No. Even if you don’t know anything technical about websites, you can easily do this if you follow the steps given below. I will take you through different steps by which you can easily migrate your WordPress website to a new domain.

Let’s get right into the topic. Try doing it with me, so you don’t miss any step.

Migrating the WordPress Website Manually

Here’s how you can quickly move your website to another domain.

Step#1: Visit Your Website

Firstly, visit your website to see that the website is working perfectly fine. If it works very well, then get ready for shifting your website.

Step#2: Backup your Website and Export Database

To move a website, you have to create a backup of your web files and the database. Download all the files in your computer and copy them in another to keep as another backup.

You can also backup your website by using a Duplicator Plugin.

In this tool, you will find a Create new option. The plugin will start scanning your website once you click the Next button. It will require just a few minutes to thoroughly scan your website.

Once it’s done, click on the build button, and you will see an option from where you can easily download the backup of your website. You also have to checkmark the yes box for the tool to create a backup.

You can also Export your website’s database from phpMyAdmin and save that SQL-file in another folder as a backup that you will import later in the new domain.

Login in your phpMyAdmin, select the website database and click export to download it onto your computer.

Some hosting providers provide a backup option for your website that you can easily access at any point. You can also create a backup through File Manager or FTP and download it to your computer.

Step#3: Buy a New Domain name

You will need a new domain where you will transfer these backup files. You can set up the new domain easily in a similar way to the previous domain.

If your hosting provider also has an option to buy a domain name, you can save up some time. Still, if you buy the domain from anyone else, you will have to point the Nameservers to the new location.

Step#4: Upload files and Import Database to New Domain

Now login to your new Domain via FTP and upload all the backup files to the new domain. If your backup was made through the file manager, then you will need to unzip the files.

You can also import your Database files to your phpMyAdmin of the New Domain so you can transfer the website entirely to the new name.

Step#5: Locate wp_options

When you are inside the phpMyAdmin of your new website, Locate the tab named wp_options, where you have to make some changes to migrate the website to a new domain completely.

Step#6: Change Siteurl And Home

Once you have located the wp_options tab now, you have to follow the following steps to update the siteurl and home, after which your website will be live again on the new domain and Url.

  • Find the siteurl and home tabs. These are usually on the first two lines.
  • For siteurl, replace the old domain name with the new domain name under the option_value column.
  • Press enter and repeat the same for the home tab.

Step#7: Change Database Connection details

Now you are almost done. Only one last step, and then you can visit your site from the new domain.

You have to update the login details in WordPress while setting up a new domain. Follow the below-mentioned seven steps for updating the details.

  • Log in to your website’s control panel.
  • Select option of the File Manager under the files and security tab
  • Now you have to locate the wp-config.php. You can locate it in the same place where you installed WordPress.
  • Now you have to locate the login details carefully. You can usually find it on the 20th line or so.
  • Now in the fields under, update your website’s login details, and you are almost done. Just a few little details and your website will be back to the way it was.

Step#8: Check your Website on New Domain

Now you are all set. Firstly, make your old website offline, so it does not interfere.

Now open your website from the new Url and check if everything is working completely fine. There are a few fixes that you have to do manually to run your website correctly.

Step#9: Check for Few Fixes

You will have to create some 301 Redirects and change the different pages’ permalinks to work correctly.

You might also see that some images are not loading correctly. In that case, you need to download Better Search Replace plugin through the WordPress dashboard. After installing it, you can go into tools and write the old domain name and the new domain name.

Check the box, Run in dry and let it do the magic for you. It will replace the links from the last website to the new domain.

Step#10: Check Your Website Again

Now recheck your website for any possible bugs. If you don’t see any, you have successfully migrated your WordPress website to the new domain.

Conclusion

So that’s all from my side.

I tried my best to explain every step in detail so not to face any problems while performing the migration. If you have followed the steps carefully, you can successfully transfer your website to a new domain name.

If you still have any query in mind, don’t hesitate to contact our support center to answer your query.

How to Setup a Cron Job

Linux developers need to perform many tasks regularly or on a repeated basis that requires a bunch of time. In this scenario, they need to automate the tasks on a particular date, day, or time to avoid missing any task and save time.

A cron job is the best way to automate the repeated tasks as per needs and requirements. Developers widely use the cron tool for creating a cron job.

Usually, newbies want to automate their tasks, but they don’t know how to run the cron job. That’s why we will discuss the basics of a cron job and how to create a cron job in this article. Stay with us to understand the entire process simply and easily.

What is a Cron Job?

Cron is a Linux-based utility used for the scheduling of various tasks at a particular time or date. Usually, Linux developers use this tool widely for the execution of repeated tasks. For example, you make a rule to make a backup of your server every Monday morning. In that case, you can set a cron job instead of doing it manually every time.

You can use crop jobs to modify the files on the database or perform regular tasks like sending notifications or emails regularly.
It is easy to set up a cron job and if you want to know more about the setup process, then continue reading.

Components Parts of a Cron Job

Usually, any cron job comprises of three components:
A script that you have to run
A command that is required to run the script regularly
The output or action of the script based on the command of the script. Sometimes, most people don’t know how to setup a cron job Linux for running a script, provide you some specific setup instructions. That’s why, if you don’t know about it, then contact the author of the script before setting up the cron job.

How to Understand Cron Syntax?

A syntax is a group of instructions or rules that define various symbols in a system’s programming language to understand the command. That’s why, like other programming languages, cron job also uses syntax.
Understanding the syntax for a cron job makes it easier to set up the cron job. The following is the format of a cron syntax that you can use for a cron job:

A B C D E USERNAME /path/to/command arg1 arg2

In the above cron syntax:

A indicates minutes range from 0 to 59
B indicates hours range from 0 to 23
C indicates days range from 1 to 31
D indicates month range from 1 to 12 (Jan to Dec)
E indicates the day of a week from 1 to 6 (Sunday to Saturday)
Username indicates the account from where you do log in
/path/to/command refers to the script or command that you want to run

Also, you have to use some operator symbols that let you use multiple values in a single field.

These symbols are:
Asterisk (*) identifies all possible values for a field
The comma (,) identifies a list of values
Dash (-) is used for a range of values
Separator (/) identifies a step value

How to Create a Cron Job?

You can use either method mentioned below to create a cron job, i.e., set up a cron job using cPanel or set a cron job using Plesk. Let’s have a look at both methods one by one.

Setup a Cron Job Using cPanel

Follow the below-mentioned steps for creating the cron job in cPanel:

Login to cPanel at ARZHost

Click on a cron job in the advanced menu or search for a cron job
Update the email address for receiving the updates about the cron job
As you click on the cron job in the advanced menu, you can see the option “add a new cron job,” just click on it.
Provide the command either directly or by uploading the file containing commands.

Click on next and select the frequency of command in the command settings from the options available in the form of a drop-down list. You can also set the frequency by providing manual settings of time and date.
After finishing the setup, just hit the add new cron job button, and you are done with the process.

It is a simple process. You can create multiple cron jobs by repeating the entire process and providing different commands.

Setup a Cron Job Using Plesk

Plesk is an alternative for creating the cron job on Linux and windows based servers. Follow the following steps for understanding the process of creating a cron job using Plesk.

Login Plesk control panel at ARZHost

Click on the tools and settings option in server management that you can see on the left side of the dashboard
Click on scheduled tasks under the tab tools & resources and then click on Plesk administrator user
Click on add new tasks on the screen of scheduled tasks and provide the required information, including command line or path to the command file
Select the frequency of task by providing information about time, date, and month by using calendar under the section of task priority
After selecting the frequency of tasks, just hit OK to complete the process, and you are done with the process

Setting Up the Cron Job in WordPress

As we know, WordPress is the largest platform for building websites. That’s why it uses its built-in features for regulating different tasks like sending emails, notifications, taking updates, deleting junk messages, and many others.But some people like to outsource the cron job feature instead of using a built-in feature. It is due to a lack of reliability, in their opinion.

Although you can also create a cron job on the WordPress site using cPanel, we will let you know about creating the cron job using the WordPress plugin.

Follow the below-mentioned steps for understanding the entire process easily:

Step # 1,

Login to your WordPress dashboard and go to the plugins area. You can see the “add new plugin” button, click on it, and search for WP Control Plugin.

Download and install the plugin.

Step # 2,

After downloading the WP Control Plugin, you can see the option of events under the tools tab in the WordPress dashboard menu on the left. Here you can see the list of cron jobs, but you can see it blank if you had never created the cron job before.
Click on the add cron event tab next to the cron event tab. Here you can see different fields like name of cron event, frequency, and date, etc. Provide the information as per your needs and hit the add cron event button.

Step # 3,

As you complete adding a new cron event, you can see a newly created event in the list under the cron events tab. But you can also see the error “None” under the action column. It means you don’t set the action for this cron event.

You can add the following coding in the PHP file of the theme just under function cw_function() {
wp_mail( ‘info@example.com’, ‘new cron’,!’ );
}

You can access the PHP file of the theme in the dashboard of WordPress and edit it accordingly. After adding the file, hit the save button, and you are done with the process.

Conclusion

It is easy to create a cron job for performing repeating tasks, but it requires little attention. It helps save time and helps in completing important tasks on time, like backup or sending notifications. If you follow the instructions provided above, you can easily do it.
Hopefully, all the discussions in the above article help you understand the process of creating a cron job.

70%OFF

Smart Sale

Hurry Up! Offer ends in
days 01 02 hrs 13 14 mins 54 55 secs 32 33
Buy Now
We are offering a Discount Promotion on All VPS. you can get upto 75% DiscountBuy Now
+ +