dailce Posted February 16, 2006 Posted February 16, 2006 The email Subject Shows "[bulk]" for in the subject line for all of the emails I get from my site. I made change to the contact as shown in the contribution here, Contact Us Spam Issue Fixes and I was wondering is the "[bulk]" was showing becuase of one of those fixes. Does anyone know? Thanks Quote
dailce Posted February 16, 2006 Author Posted February 16, 2006 It look like removing this fix from the contributin fixed it, but is there a way to use this code and not get the "[bulk]" in the subject line???? =========================== 7. Contact Us Spam Relay. More info: http://www.anders.com/cms/75/Crack.Attempt/Spam.Relay catalog/contact_us.php Find this: $error = false; if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) { $name = tep_db_prepare_input($HTTP_POST_VARS['name']); $email_address = tep_db_prepare_input($HTTP_POST_VARS['email']); $enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']); Change to this: $error = false; if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) { // http://www.anders.com/cms/75/Crack.Attempt/Spam.Relay $_POST['email'] = preg_replace( "/\n/", " ", $_POST['email'] ); $_POST['name'] = preg_replace( "/\n/", " ", $_POST['name'] ); $_POST['email'] = preg_replace( "/\r/", " ", $_POST['email'] ); $_POST['name'] = preg_replace( "/\r/", " ", $_POST['name'] ); $_POST['email'] = str_replace("Content-Type:","",$_POST['email']); $_POST['name'] = str_replace("Content-Type:","",$_POST['name']); $name = tep_db_prepare_input($_POST['name']); $email_address = tep_db_prepare_input($_POST['email']); $enquiry = tep_db_prepare_input($_POST['enquiry']); $enquiry = tep_db_prepare_input($enquiry . "\n\n IP: " . $_SERVER['REMOTE_ADDR']); * Last line above also shows remote IP address in e-mail* Quote
dailce Posted February 16, 2006 Author Posted February 16, 2006 Well actually I foudn that it was only the one line that is causing the "[bulk]" to appear $enquiry = tep_db_prepare_input($enquiry . "\n\n IP: " . $_SERVER['REMOTE_ADDR']); I guess I have to find another solutoin for the IP address Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.