Results 1 to 2 of 2

Thread: email telephone number from contact form

  1. #1
    Thread Starter
    Expired Customer cessolutions's Avatar
    Join Date
    May 2019
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    email telephone number from contact form

    I was able to add a field for telephone number by adding this code to the widget-listing-author.php file

    <label><?php _e( 'Phone', APP_TD ); ?>
    <input type="text" name="contact_phone" id="contact_phone" class="required">
    </label>

    How do I add the phone number to the email message in the emails.php file?

    I found this code below but can't figure out how to pull the phone info into the email.

    $message .= html( 'p',
    sprintf( __( 'Name: %s', APP_TD ), $from_name ) . '<br />' .
    sprintf( __( 'E-mail: %s', APP_TD ), $from_email )
    ) . PHP_EOL;

  2. #2
    Expired Customer f1computing's Avatar
    Join Date
    Sep 2019
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to add field "telephone number" to contact form?
    By actv6 in forum ClassiPress General Discussion
    Replies: 12
    Last Post: March 24th, 2017, 06:53 PM
  2. [SOLVED] How to add field "telephone number" to contact form?
    By robot111 in forum ClassiPress General Discussion
    Replies: 23
    Last Post: March 18th, 2017, 03:37 PM
  3. contact poster form, not allow email or phone number
    By oscanyon in forum ClassiPress General Discussion
    Replies: 0
    Last Post: November 3rd, 2013, 09:34 AM
  4. Showing telephone number and email in Resume
    By mouradbouikni in forum Report JobRoller Bugs
    Replies: 5
    Last Post: March 2nd, 2012, 08:17 PM
  5. How to add field "telephone number" to contact form?
    By robot111 in forum Help Using ClassiPress
    Replies: 2
    Last Post: December 31st, 1969, 07:00 PM