Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

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

Posted

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*

Posted

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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...