WordPress.org

Ready to get started?Download WordPress

Forums

Custom Contact Forms
Want to add logged in user email address (2 posts)

  1. zimode
    Member
    Posted 3 years ago #

    I tried to add the following code:

    <?php global $display_name , $user_email;
    get_currentuserinfo();

    to the custom-contact-forms-front.php at the appropriate line
    $mail->Subject = $admin_options['default_form_subject'] . " From" . $user_email;

    I'm trying to automatically add the users email address to the subject.. I get the "From" in the subject but not the users email address..

    Any ideas or help would be great.. as I like this plugin

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

  2. zimode
    Member
    Posted 3 years ago #

    Has anyone added user fields to the contact-forms? Any help would be greatly appreciated..

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic