I would like to add cp_ fields to the sidebar contact email
Hi there,
I have purchased your plugin, thanks it is a life saver!
I was wondering if you could help me. I have hidden fields that are used to capture information about the owner of the items that are listed on the website. When a possible buyer uses the sidebar contact form I need these hidden fields to also appear on the email that is sent. Only the email I don't want to edit the contact form. All emails are sent to admin for this website.
I am not a php programmer but I suspect it would simply be a case of adding those fields in theme-emails.php somewhere here:
$message = sprintf(__('Someone is interested in your ad listing: %s', 'appthemes'), $permalink) . "\r\n\r\n";
// $message = sprintf(__('From: %s - %s', 'appthemes'), $from_name, $from_email) . "\r\n\r\n";
$fixPostMessage = stripslashes($_POST['message']);
$message .= '"' . wordwrap(strip_tags($fixPostMessage), 70) . '"' . "\r\n\r\n\r\n";
$message .= sprintf(__('Name: %s', 'appthemes'), $from_name) . "\r\n";
$message .= sprintf(__('E-mail: %s', 'appthemes'), $from_email) . "\r\n\r\n\r\n\r\n";
$message .= '-----------------------------------------' . "\r\n";
$message .= sprintf(__('This message was sent from %s', 'appthemes'), $sitename) . "\r\n";
$message .= $siteurl . "\r\n\r\n";
$message .= __('Sent from IP Address: ', 'appthemes') . appthemes_get_ip() . "\r\n\r\n";
// ok let's send the email
wp_mail($mailto, $subject, $message, $headers);
If you can help it would really be appreciated.
The custom fields I need added to the email are the seller's info:
cp_company_name - text box
cp_contact_name - text box
cp_state - drop down
cp_city - text box
cp_position - text box
cp_email - text box
cp_cellphone_number - text box
cp_farm_name - text box
cp_postal_address - text box
cp_streetfarm_address - text box
cp_item_to_view_address - text box
Kind regards
Martha