Bluehost and Hostgator server isn’t working with Contact Form 7 plugins.

Bluehost server is functional so it’s normally will be not work with contact form 7 plugins for wordpress. We need to configure it. It’ll be work all type of mail example (gmail, yahoo, yourdomain@com).

Step #1: Install your Contact form7 plugins.

Step#2: Install WP Mail SMTP plugins for working.

Step#3: You need to configure it -> Go to Settings -> Email ->

From Email: admin@deshisoft.com (Example)

From Name: deshisoft (Example)

Mailer: Send all WordPress emails via SMTP.

Encryption:

Authentication:

Username: Your hosting user name (cpanel user)

Password: Your hosting password (cpanel pass)

Send a Test Email: admin@deshisoft.com (Example)

Some Server isn’t working by this method (example: hostgator). So you need to follow another way if above the way is useless-

SMTP -> ERROR: Failed to connect to server: Connection refused (111)
SMTP Error: Could not connect to SMTP host.

I change the port 587 with TLS encryption protocol.

If it’s still this type of error please try this way:

Problem: contact form 7 confirms message has been successful, however message is not received with website hosting email address !!!!

nside the plug in directory for contact form 7, use your FTP program
go to: /includes/classes.php
edit as per below
original:
$headers = “From: $sender\n”;
change to
//$headers = “From $sender\n”;

Emails that are being sent from your website are showing up in users inbox as “WordPress@domain.com” you want like to change it from “wordpress@” to “somethingelse@domain.com.”

Solution:

Use a filter, added to functions.php of your theme:

example:

//notification mail email change
add_filter('wp_mail_from','custom_email_from');
function custom_email_from($mail) {
$mail = 'somethingelse@domain.com';
return $mail;
}
//notification name change; optional
add_filter('wp_mail_from_name','custom_email_from_name');
function custom_email_from_name($name) {
$name = get_bloginfo('wpurl');//or put your own text here
return $name;
}

That’s all

2 Replies to “Bluehost and Hostgator server isn’t working with Contact Form 7 plugins.”

  1. Special web site! I uncovered it while shopping for Yahoo Announcement. Have you got every tips about how to find listed in Yahoo Reports? I’ve been hoping for quite a while on the other hand by no means seem to make it! Thank you

Leave a Reply

Your email address will not be published. Required fields are marked *


*