Support » Plugin: WordPress Contact Forms by Cimatti » Submitter email not in "To" field when replying to "Notify administrator email"

  • Resolved edloz


    I would like to reiterate that I am absolutely thrilled with this wonderful plug in. You have done an incredible job.

    I now have everything working perfectly. The only thing I cannot figure out is how can I make it so that when I receive the “Email to notify administrator”, I can simply click “reply” and the “To” field would automatically contain the email of the person that submitted the Contact Form.

    As it is right now, the email to notify administrator always comes from the default email set up in wordpress, so if I click “reply”, the “To” field is pre-filled with the default wordpress email instead of the email of the person that submitted the Contact Form.

    In order to reply, I am having to copy the visitor’s email which appears in the email body (because there is an {email} token in the message) and paste into the “To” field. It would be nice if I could just hit reply and have the “To” field already contain the visitor’s address.

    I have not been able to find anywhere where I can make the email to notify administrator come from the email of the visitor that submitted the Contact Form. Also, there is no “From” field in the settings for the “email to notify administrator” where I could enter the {email} token.

    How can I make this happen? If it is not possible with the current version of the software, could you tell me what file I could edit so that the email to administrator always comes from {email}? I am not an expert PHP coder, but I am a little bit familiar and can probably do it if you give me the filename and line numbers that determine what email address the notify administrator email comes from.

    Thanks again for making the best Contact Form plugin in all of wordpress.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author cimatti


    Hi, and thanks for the praises 🙂

    We thought about this feature, but currently this is not implemented.

    The easy way would be setting the “Reply-To:” mail header with the autoreply email. However in this way normally the email client includes the original message in the answer, and I think there are too much informations for the one who filled-in the form.

    The mail is sent in function accua_forms_form_submission_handler() in file accua_forms_form_submission_handler, but I don’t suggest to edit the code, as modifications will be lost if you update (or WordPress auto-updates) the plugin. You can create a plugin that hooks to the filter call “accua_forms_submission”.

    Currently you can’t change directly the mail header, but in the filter you can send the admin email as you wish and then set $replace_map[‘admin_emails_to’] = ” so the admin email is not sent again.

    I think the best solution would be a reply button in the email, with a link in the format “…&body=…”, with customizable subject and body. Probably I’ll implement this in a future version

    YES! Setting the “Reply-To” mail header with the autoreply email worked great! In my case the email client is not including the original message, but even if it did, I would not mind if it included the extra information. It just makes the autoreply seem to come from the same person filling out the form as if he was sending an email to himself, BUT in my case, this is actually good, because I don’t want them to reply to it anyway.

    This solution worked PERFECT for me. THANK YOU!!! I am so happy with this plug in, you have no idea. It is just what I was looking for. God bless you, my friend for writing this plugin!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Submitter email not in "To" field when replying to "Notify administrator email"’ is closed to new replies.