Custom Contact Forms
Senders email (7 posts)

  1. aerin
    Posted 3 years ago #

    Impossible to set up the plugin so that the senders name and email address appears in the 'from' box.


  2. dshayne
    Posted 3 years ago #

    I don't know why this has not been answered, but I figured out how to do this by sort of dinking around. In the custom-contact-forms-front.php, search for this line:
    $mail->FromName = $from_name;

    and change it to the slug you use for your fixed email (here is mine)

    $mail->FromName = $fixedEmail;

    Hope this helps! Actually, it may even be possible to just insert that slug when you are creating the form to begin with. haven't tested that yet.

  3. AKnecht
    Posted 2 years ago #

    I've tried entering $fixedEmail in the form creation field and it doesn't work.

    Would love to be able to easily send an email to the person who sent in the form as well as it go to the a defined recipient.

  4. dshayne
    Posted 2 years ago #

    Hi AKnecht,
    The place to enter this is not in the form creation field, but in the file called custom-contact-forms-front.php You kind of have to go into your files to find this; it is NOT in your wordpress dashboard. I am not sure how to direct you to find this file, as every one has a different set up. When you install a plug-in, those files are kept somewhere on your domain. You might ask your isp if what I'm saying does not make sense to you. Sorry! I am not a computer tech, just an intrepid amateur who is not afraid to stick her nose behind the scenes!

  5. AKnecht
    Posted 2 years ago #


    Thanks for the feedback. I know exactly what you're talking about and how to to it. I just wish I could do it via the interface (much easier) as occasionally when plugins are upgraded, all the custom code gets overwritten and you can be screwed.

    So I just had to test that method out.

  6. dbergsma
    Posted 2 years ago #

    Hi folks,

    first post, wordpress newbie - apologies in advance.

    I changed the custom-contact-forms-front.php (After backup of course), line 591
    $mail->FromName = $from_name;
    $mail->FromName = $Email;

    $Email is a slug of an existing field.

    no discernable change in behavior.

    do I have to reload, reboot, re???? something for it to take effect?

    is there a difference from a fixed slug to a normal slug?

    I recognize that I must use the Email filed on all forms otherwise I will have problems.

    thanks in advance.

  7. dbergsma
    Posted 2 years ago #

    ok, seems like fixed is required and cannot use normal slug. I can work around it.

    A litle binder twine and bubblegum and I'm in business....


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Contact Forms
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic