Thank you for contacting Telecom Classified Ads.

If you do not receive an immediate email confirmation of your inquiry, email us directly at info@telecomclassifiedads.com or call us at (00)-1-231-946-2195. We appreciate your business and will respond personally to your inquiry.

post_content);
$body .= “\nAd Link: “.get_permalink($_REQUEST[‘WP_ID’]);

$client_tag= << 3,
‘post_category’ => array(5),
‘post_content’ => $_REQUEST[‘contactcomments’],
‘post_status’ => ‘draft’,
‘post_title’ => $_REQUEST[‘contactcomments’]
);

$post_id=wp_insert_post( $my_post );

//Set things to EST, in case we’re not already there.
date_default_timezone_set(‘EST5EDT’);
if ($_REQUEST[‘cust_type’] == ‘Reseller’){
$isreseller = ‘c’;
}
//$a_code = date(‘md’).substr(date(‘a’), 0, 1).substr(date(‘a’), 0, 1).$isreseller.date(‘hi’);
$a_code = date(‘mdy’).$isreseller.date(‘Hi’);
if( !is_wp_error($post_id) && $post_id > 0 ) {
add_post_meta($post_id, ‘Contact_Email’, $_REQUEST[‘contactemail’]);
add_post_meta($post_id, ‘Contact_Name’, $_REQUEST[‘contactname’]);
add_post_meta($post_id, ‘Contact_Phone’, $_REQUEST[‘contactphone’]);
add_post_meta($post_id, ‘Contact_Customer_Type’, $_REQUEST[‘cust_type’]);
add_post_meta($post_id, ‘ID_Code’, $a_code);
}
$nonce= wp_create_nonce (‘my-nonce’);
$nonce=$_REQUEST[‘_wpnonce’];
if (! wp_verify_nonce($nonce, ‘my-nonce’) ) die(“Security check”);
$elink = “\n\n Edit Link: http://www.telecomclassifiedads.com/wp-admin/post.php?post=$post_id&action=edit \n\n\n”;
//$elink = “\n\n Trash Link: http://www.telecomclassifiedads.com/wp-admin/post.php?post=$post_id&action=trash&_wpnonce=$nonce \n\n\n”;
//$editlink = “\n\nResponse ID_Code:” .$_REQUEST[‘a_code’];

$headers = ‘From:’ .$_REQUEST[‘contactemail’].”\r\n” .
‘Reply-To:’ . $_REQUEST[‘contactemail’] .”\r\n”;
$subject= ‘Ad Response:’ . strip_tags(get_post($_REQUEST[‘WP_ID’])->post_title).”\r\n”;
//$subject= substr($subject,0,30);

if ($_REQUEST[‘contactemail’]){
mail(‘mickey@telecomclassifiedads.com’, $subject, $elink.$body,$headers);
//mail($_REQUEST[‘contactemail’], ‘Response to telecomclassifiedads.com Ad’, $client_tag.$body, $headers);
// mail(‘mickey@telecomclassifiedads.com’, ‘Response to telecomclassifiedads.com Ad’, $body.$editlink, ‘From: automated_message@telecomclassifiedads.com’);
mail($_REQUEST[‘contactemail’], ‘Response to telecomclassifiedads.com Ad’, $client_tag.$body, ‘From: automated_message@telecomclassifiedads.com’);

}else{
echo’

You seem to have entered an invalid e-mail address. Please try again.’;
}
?>