• Resolved Trent Wilde

    (@trent-wilde)


    Hi, when trying to send a message through my contact form I get the following message in a red box:

    “Failed to send your message. Please try later or contact the administrator by another method.”

    Interestingly, I actually receive the e-mails in my Postman e-mail log, but this message still comes up on my contact page (http://www.bdsda.com/contact-us/), which will doubtless cause people to think their message didn’t send.

    The form had been working fine until earlier today when I added a recaptcha, so I think that is where the problem is – perhaps I entered something wrong. Please help 😀

    https://wordpress.org/plugins/contact-form-7/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    What plugins and theme do you use on the site?

    Thread Starter Trent Wilde

    (@trent-wilde)

    I’m using Vantage Premium, and my plugins (in order) are these:

    AddtoAnyShare Buttons
    Advanced WP Columns
    Akismet
    All in one Favicon
    Black Studio Tiny MCE Widget
    Contact Form 7
    Exclude Pages from Navigation
    Google Analytics Dashboard for WP
    Google Website Translator by Prisna.net
    Jetpack by WordPress.com
    Max Mega Menu
    Max Mega Menu – Pro Addon
    Meta Slider
    Meta Slider – Pro Addon Pack
    Mojo Marketplace
    Open external links in a new window
    Page builder by SiteOrigin
    PayPal Donations
    PHP Text Widget
    Postman SMTP
    Really Simply CAPTCHA
    Reftagger
    Relevanssi
    Side Matter
    Site Origin CSS
    SiteOrigin Widgets Bundle
    Speed Booster Pack
    Use Any Font
    WP Anchors Links
    WP Smush
    Youtube
    Zencache

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Wow so many! I’m guessing one of the plugins or theme is interfering in the mail sending process. Otherwise you can’t explain the reason of the odd behavior. The red border means wp_mail() has failed, but you actually receives the mail.

    If possible, try deactivating all other plugins and switching to the default theme. If one of them was affecting, you would see green border. I think reCAPTCHA has nothing to do with this issue.

    Thread Starter Trent Wilde

    (@trent-wilde)

    Thanks – I’ll experiment 😀

    Thread Starter Trent Wilde

    (@trent-wilde)

    I tried deactivating a number of plugins, but it didn’t change anything. I also tried removing reCAPTCHA and that didn’t work either.

    Same problem here –
    I disabled every plugin except Contact Form 7 and got the green box saying my message was sent, but it wasn’t. After more than 30 minutes I still haven’t received the message.

    I also get the confirmed message after reactivating all plugins.

    Thread Starter Trent Wilde

    (@trent-wilde)

    Hi Eselby,

    That problem seems to be a different one from my issue in that all the contact form messages are actually sending in my situation – it is only that rather than a green boxed success message, the person filling out the form gets a red boxed “failed to send” message which causes them to think it didn’t send, when it really did.

    In the past I had the reverse problem, which seems to be what you are having. There is a success message, but the e-mail doesn’t send. I’ll tell you the solution I found in the past and hopefully it will work for you. Basically, I found out that the problem was the the hosting server was recognizing all the e-mails as spam. What I had to do to change that was to add an e-mail with my own domain in it to my “from” section in the “mail” tab of the contact form editor.

    So my from section now looks like this:

    [your-name] <admin@bdsda.com>

    Also, my “additional headers” section looks like this:

    Sender: <admin@bdsda.com>
    Reply-To: [your-email]

    Of course, for you it won’t be “@bdsda.com” it will be “@yourdomain.com” (whatever your domain is). At the time I didn’t have a domain e-mail account so I had to make one – you may have to do the same if you don’t already have one. Anyway, if you do this, your host won’t recognize the e-mail as spam because it is from your own domain. You will still see the person’s e-mail address and be able to respond to them, but it is re-routed to go through your domain e-mail before getting it to whatever e-mail you want. The “send” section of the Mail tab of the contact form editor is where you enter the e-mail address where you want all the e-mails from to contact form to finally go.

    I really hope this helps – I don’t know much, but I hope this saves you the trouble I had to go through to find the solution when I was having what looks to be the same problem.

    If anyone out there has any tips on how to get contact form to stop giving “failed to send” messages even though they are sending – please do let me know. So far, I haven’t had any luck.

    Thread Starter Trent Wilde

    (@trent-wilde)

    OK! So, it is now resolved! I’ll tell you all how it was fixed it in hopes that it will help anyone who runs into the same problem. In my case, the problem was with the Postman SMTP plugin. I still don’t know what the exact difficulty was, but I discovered that the problem was with this plugin (or with my incorrect use of it?) when I deactivated it and my red-boxed “Failed to send” messages turned into green-boxed “Your message was sent successfully” messages. The problem was, though, that since I had disabled Postman, the mail could not deliver – it only said it did (back to the reverse problem again).

    So, what I did was to reactivate Postman SMTP but set it up in a different way. Up till now I had been using smtp.gmail.com:587 with password authentication rather than OAuth. Well, I simply followed the instructions of this video in setting up Gmail API and authenticating by means of the Client ID and Client Secret and now it works perfectly. HalleluYah!

    I hope this is helpful for others of you out there 😀

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘"Failed to send" message, when it sends’ is closed to new replies.