WordPress.org

Ready to get started?Download WordPress

Forums

Custom Contact Forms
Senders email (7 posts)

  1. aerin
    Member
    Posted 2 years ago #

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

    http://wordpress.org/extend/plugins/custom-contact-forms/

  2. dshayne
    Member
    Posted 2 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
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

    Dshayne,

    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
    Member
    Posted 1 year ago #

    Hi folks,

    first post, wordpress newbie - apologies in advance.

    I changed the custom-contact-forms-front.php (After backup of course), line 591
    from
    $mail->FromName = $from_name;
    to
    $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
    Member
    Posted 1 year 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....

    cheers
    Dean.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic