• I am trying to use contact form 7 along with wp-mail-smtp on my contact page. I cannot get it to send an email successfully. In the test error it says it cannot connect to the smtp host, but I have my smtp settings correct – I checked and rechecked. I have the same ‘from’ address in both widgets, also. I have also contacted my hosting company to see if it’s a server side issue, but they haven’t gotten back to me yet.

    Is there anything else I should be checking?

    I also wrote my own html form and processed it with a php form that I use on a different site. The formailer posted the success page, but I never received the test email.

    You can see the contact page at http://www.littlesparrowstudios.com.

    Thanks

Viewing 15 replies - 1 through 15 (of 35 total)
  • First make sure the TO: address being sent to is the same configued for SMTP. Also does the SMTP require authentication?

    Thread Starter jdmrgtnj

    (@jdmrgtnj)

    Yes, the TO: address is the same in the the smtp plugin and the contact form plugin.

    And yes, the server requires authentication, which I have set in the wp-mail-smtp plugin, with requires smtp auth checked off in the box.

    next step?

    you might need the port opened with your host. Check with them.

    Thread Starter jdmrgtnj

    (@jdmrgtnj)

    Ok thank you, I have a support ticket submitted. They take days to respond though. Hopefully, they’ll get back to me sometime before the end of days this time. I kind of had a feeling that’s what it was, but was hoping that it was something on my end. Thanks for you help.

    Make sure you ask for the correct port. Normally its 25 but not that uncommon to see 465 and other ports especially for secure connectiojns.

    Thread Starter jdmrgtnj

    (@jdmrgtnj)

    I have it set to port 587, which is the port they say to use in their faq section.

    What I don’t understand is this – I have contact forms on other sites that are regular html pages and they work fine. Wouldn’t that mean that the ports are open?

    587 is the alt port for SMTP. But often its blocked.
    WHen you say “other sies” are they on the same server with the same IP #? And using 587?
    If you have some kind of shell access to the server you should be able to test the outgoing port. Use this command:
    telnet smtp.domainname.com 587

    If it says Connected the port is open.

    Thread Starter jdmrgtnj

    (@jdmrgtnj)

    my host is saying that the server is not set up to use smtp and I should be using php mail function, so I deactivated the wp-mail-smtp plug in but still no luck.

    I don’t have any shell access though, so I can’t test the port on my own. I’m pretty sure that’s what it is, but the idiot at the support closed the ticket when he sent me the message about not using smtp, so now I have wait another 2 days to hear back again!

    don’t ever let anyone you know sign up with netfirms for hosting!!!

    Do not understand the two support thing. Maybe you should consider another host?
    If they told you to be using PHP mail then that is what you should be using and we should get that working. What problem do you have with that? Error messages?

    Thread Starter jdmrgtnj

    (@jdmrgtnj)

    When I try to send an email through the form, I get that dreaded red box. I don’t see anywhere in the contact form 7 plugin to see error messages, but when I was using it in conjuction with the smtp plugin (set to php mode) and using the test email function, I was getting an error that said something like ‘can not instantiate function’ or something similar to that.

    Everything seems to point to a server issue. I am going to make a html page with a form and upload it to the server and see if that works real quick. Because yesterday, when I was trying to fix this, I created a form in html on my wordpress contact page, used a feedback.php script I had on file, and the script sent the success message, but I still never received any emails. I’ll let you know if it works or not with a stand alone page.

    And thanks for all of your help on this. Pph isn’t my thing and I really have no clue how to check any of it. And I’ve seriously been considering changing hosts, any good suggestions? I have 11 domains currently on my account right now, so I have a business account with tons of bandwidth, disk space, and emails. It just seems to be in the last year that the support has really gotten bad. Their (netfirms) facebook page is flooded with people complaining about the same things.

    Thread Starter jdmrgtnj

    (@jdmrgtnj)

    I just tried posting a new comment to see if I received the post notification, and I did not. So I registered a new user, and no email notification, either to me or the email address I used to set up the new user with.

    I also uploaded a html contact page here and I have set to show my homepage on success and a different website homepage on failure. When I submit the form, it returns my homepage, but no email is received.

    Let’s Start from basics:
    First create a php file with the following. Call it whatever you want but DO NOT POST IT’S NAME HERE!!! Just try it yourself then delete it.

    <?
    $headers = 'From: website@YOURDOMAIN.COM';
    mail('tester@YOUREMAIL.COM', 'Test of php email', 'This is only a test');
    ?>

    Lastly. Are you keeping this domain name? It expires in three days.

    Also are you on Windows or Linux hosting?

    Thread Starter jdmrgtnj

    (@jdmrgtnj)

    Ok, I made the file, linked it my submit function, and when I ran it, it reloaded to the php file. Is that what it was suppose to do?

    I did not get the email though.

    And from what I can tell, the server uses both windows and linux. And yes, the domain just billed with auto renew.

    you can not be on linux and windows at the same time

Viewing 15 replies - 1 through 15 (of 35 total)

The topic ‘[Plugin: Contact Form 7] Won't connect to smtp server’ is closed to new replies.