Contact form

Jeff's Avatar

Jeff

06 Aug, 2009 06:42 PM via

My contact form keesp telling customers

I'm sorry, there seems to have been an error trying to send your email. Please try again.

even though the emails DO arrive. (all 16 of them)
What might cause the error message

  1. Support Staff 2 Posted by Luke Hefson on 07 Aug, 2009 09:50 AM

    Luke Hefson's Avatar

    Hi Jeff,

    Thanks for the message. I'm sorry to hear that you are having issues with RapidWeaver, I understand what an inconvenience this may be for you.

    To help us further investigate your issue, we'd appreciate it if you could quickly run though the steps in the following link and let us know if you are still encountering problems:

    http://realmacsoftware.tenderapp.com/faqs/rapidweaver/common-fixes-for-rapidweaver-contact-form-issues

    Please let me know if I can be of any further assistance.

    Kind regards,

    Luke

    -- Luke Hefson

    Support & QA, Realmac Software

    Our support team are in the office between 9am and 5pm UK time, Monday to Friday, and we aim to answer all requests within one business day.

  2. Luke Hefson closed this discussion on 07 Aug, 2009 09:50 AM.

  3. Jeff re-opened this discussion on 07 Aug, 2009 08:17 PM

  4. 3 Posted by Jeff on 07 Aug, 2009 08:17 PM

    Jeff's Avatar

    Thanks Luke.
    I read those questions and acted on the before I posted my message, as your submissions page insists that I do.
    I have tried all combinations of the checkboxes on the properties tab, and the web host allows PHP
    As I stated, the emails do arrive, but the form says there was an error regardless.
    There is no option to amend the error message: If there was I would simply change it to something less worrying.

  5. Support Staff 4 Posted by Luke Hefson on 10 Aug, 2009 09:05 AM

    Luke Hefson's Avatar

    Hi Jeff,

    Thanks for the update. Could you provide us with a link to your URL so that we an further investigate what the issue may be?

    Kind regards,

    Luke

    -- Luke Hefson

    Support & QA, Realmac Software

    Our support team are in the office between 9am and 5pm UK time, Monday to Friday, and we aim to answer all requests within one business day.

  6. 5 Posted by Jeff on 10 Aug, 2009 10:18 PM

    Jeff's Avatar
  7. 6 Posted by Aron Carroll on 11 Aug, 2009 09:02 AM

    Aron Carroll's Avatar

    Hi Jeff,

    Sorry to hear you’re having trouble with the contact form. I think the root of this issue may be with your server. We use the standard PHP mail() function to send emails, this simply returns true or false depending if the email is accepted by the server.

    The error message you are seeing is displayed if the server tells us it cannot send the mail, when clearly it has sent it. It may be worth dropping an email to your host to see if they have anything set up incorrectly on their end.

    Please do let me know how you get on.

    Cheers,

    Aron

  8. 7 Posted by Jeff on 12 Aug, 2009 08:16 PM

    Jeff's Avatar

    My provider has checked the form, and admits that there is an issue with the rror handling of the Mail() funtion.
    Their response is 'please turn off your error checking for the moment'.
    Ive looked at the source for the contact.php file, and the source for the mailer.php file, and I cant see anything that resembles and error handler or the error message that is displayed.
    How can error handling be disabled?

  9. 8 Posted by Aron Carroll on 13 Aug, 2009 08:17 AM

    Aron Carroll's Avatar

    Hi Jeff,

    I’m glad to hear your host is working on a solution. In the mean time
    the code in question can be found in mailer.php around line 217.

    //if the mail sending works
    if (@mail($email, $subject, $message, $headers)) {
        //set the success message
        $_SESSION["formMessage"] = $message_success;
        unset($_SESSION['form']);
    } else { //if mail sending fails
        $_SESSION["formMessage"] = "I'm sorry, there seems to have been an error trying to send your email. Please try again.";
    }
    

    If you’re happy editing this file on your server you could change this
    block to something like.

    @mail($email, $subject, $message, $headers);
    // set the success message
    $_SESSION["formMessage"] = $message_success;
    unset($_SESSION['form']);
    

    This will always report the form has sent successfully. You can then
    simply republish the contact form when your host resolved the issue.

    Cheers,

    Aron


    Aron Carroll
    Web Developer, Realmac Software

Comments are currently closed for this discussion. You can start a new one.