Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #4438

    Tell me how the Contact Us form works if you can, I have three issues. First, I’m not receiving any emails and I know sendmail works with my host for other apps we host.

    Second, I’d like to add a confirmation screen after the user hits submit, something that indicates their email has been sent.

    Third, I have 1 address specified in the main menu, but I’d like to add multiple addresses. The semi-colon and comma separators between multiple addresses do not seem to work.

    Thanks in advance.

    #46324

    Hey,

    The contact form is a PHP function which collates the data entered through the form and uses the PHP Mail function to send the email to the specified address. If you’re not getting the messages, firstly check whether you can receive standard WordPress notifications, for example, try resetting your password.

    If you receive WP emails, but not the contact form messages then the Mail function has not been correctly setup by your webhost. You have 2 choices, firstly to ask them to enable and configure Mail; or secondly, modify the PHP script which sends the email to use the same fucntion which send WP notifications. Open up /framework/php/class-form-generator.php and find this code (around line 239):

    mail($to, $subject, $message, $header);

    Change it to:

    wp_mail($to, $subject, $message, $header);

    If messages are being sent correctly, you should already receive a notification that the message was sent. The default is:

    Your message has been sent!

    You can modify the text in /includes/contact-form.php if you use another language or wish to provide more information.

    James

    #46325

    Hi there,

    can you, please, answer the question about adding multiple emails? :)

    {I have a flashlight theme and I need to add one more email where the mails from contact form should be send}

    Thank you very much!

    R.

    #46326

    Hey!

    Open up flashlightframeworkphpclass-form-generator.php and replace:

    $to = urldecode( $mymail );

    with:

    $to = urldecode( $mymail );
    $to .= ', (Email address hidden if logged out) , (Email address hidden if logged out) '

    and change the mail address as required.

    Regards,

    Peter

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Contact Us form’ is closed to new replies.