Forums

Grunion Contact Form
Not receiving messages. (9 posts)

  1. Mac and Cheese
    Member
    Posted 1 year ago #

    Everything seems to work out perfectly when I try to make a test message, but when I check my email, I don't get the messages I sent.

    I've already reinstalled it a couple times and I even changed my theme to 2010 to see if something in my custom theme was preventing it from working.

  2. Context Canada
    Member
    Posted 1 year ago #

    Did this get resolved? I tried this plug in today and received test messages on my website, but I have not received the messages in my Outlook inbox.

  3. Joseph Scott
    Member
    Posted 1 year ago #

    Grunion runs the submitted forms via akismet and doesn't send the emails if it is marked as spam. The version of Grunion, 2.0, has a feedbacks section in wp-admin where you can review those spam comments.

  4. sempervirent
    Member
    Posted 1 year ago #

    I only receive emails if I choose a "TO" address that is not the same as my WP login. I am not using Akismet and don't have it installed.

  5. jonwitts
    Member
    Posted 10 months ago #

    I am not getting any mailings sent out to me with this plugin either. My Contact form shortcode is this:

    [contact-form subject="Jon Witts Design Contact" to="info@example.com"] [contact-field label="Your Email Address" type="email" required="true" /] [contact-field label="Full Name" type="text" required="true" /] [contact-field label="Telephone number" type="text" required="true" /] [contact-field label="Query Details" type="textarea" required="true" /] [/contact-form]

    I am getting the messages in the feedback section and Akismet is not marking them as spam, but they never make it to my email account. I have tried multiple to addresses to no avail.

    I am using version 2.2 of the plugin

  6. Joseph Scott
    Member
    Posted 10 months ago #

    Couple of things to check:

    - the web server error logs, make sure something didn't die when it tried to send the email
    - your mail server logs, see if it rejected the emails prematurely

  7. jonwitts
    Member
    Posted 10 months ago #

    Hi Joseph,

    Thanks for getting back so quickly.

    There is nothing in the error logs and I have tried to send it to three different email address all on different domains and it makes it through to none of them. I am afraid I do not have access to the mail server logs; only the web server logs...

    Jon

  8. jonwitts
    Member
    Posted 10 months ago #

    With WP_DEBUG on I get the following notices as I try my form:

    On loading the page with the form in:

    Notice: Undefined index: action in /htdocs/blog/wp-content/plugins/grunion-contact-form/grunion-contact-form.php on line 26

    Then on sending the message I get the following:

    Notice: Undefined index: action in /htdocs/blog/wp-content/plugins/grunion-contact-form/grunion-contact-form.php on line 26

    Notice: Undefined variable: comment_author in /htdocs/blog/wp-content/plugins/grunion-contact-form/grunion-contact-form.php on line 386

    Notice: Undefined variable: comment_author_url in /htdocs/blog/wp-content/plugins/grunion-contact-form/grunion-contact-form.php on line 390

    Notice: Undefined variable: extra_content_br in /htdocs/blog/wp-content/plugins/grunion-contact-form/grunion-contact-form.php on line 435

    Notice: Undefined variable: comment_author_label in /htdocs/blog/wp-content/plugins/grunion-contact-form/grunion-contact-form.php on line 438

    Notice: Undefined variable: comment_author_url_label in /htdocs/blog/wp-content/plugins/grunion-contact-form/grunion-contact-form.php on line 440

    As they are all notices, not errors or warnings, I doubt they are stopping things going. I am going to check there is nothing strange with my webserver config, but the wordpress install I am adding this plugin to can email fine, and I have a contact form on a static php page on this server just using the mail function which operates just fine...

  9. jonwitts
    Member
    Posted 10 months ago #

    My web hosting company have this to say about using php mail scripts... Not sure if I need t tweak yours to meet their requirements...

    PHP

    Use the PHP mail function and set the ‘mail from’ value using the following code - replacing email@yourdomain.com with the appropriate email address.

    $email_from = “email@yourdomain.com”;
    ini_set("sendmail_from", “$email_from");

    You need to add a fifth “-f” parameter to the sendmail function. This will set the name of the from address.

    mail($email_to, $email_subject, $email_message, $headers, ‘-f’.$email_from);

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic