Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Send me email when someone registers?


ashlyn

Recommended Posts

Posted

Is there some way to do this? I get confirmation of orders, but have no idea when someone registers (need to know to zap bogus signups, it's a wholesale site)

 

I've looked through the php files and couldn't see anything that really jumped out at me. Just need some way to send a BCC to myself.

 

Thanks for any tips.. :shock:

-------------------------------------------------------

 

I used to be insane, but now I'm just nuts ;)

Posted

in create account_process just enter the following code.

// send emails to other people

 if (SEND_EXTRA_ORDER_EMAILS_TO != '') {

   tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, nl2br($email_order), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, '');

 }

 

you then get:

    // build the message content

   $name = $firstname . " " . $lastname;



   if (ACCOUNT_GENDER == 'true') {

      if ($HTTP_POST_VARS['gender'] == 'm') {

        $email_text = EMAIL_GREET_MR;

      } else {

        $email_text = EMAIL_GREET_MS;

      }

   } else {

     $email_text = EMAIL_GREET_NONE;

   }



   $email_text .= EMAIL_WELCOME . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING;

   tep_mail($name, $email_address, EMAIL_SUBJECT, nl2br($email_text), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);



// send emails to other people

 if (SEND_EXTRA_ORDER_EMAILS_TO != '') {

   tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_SUBJECT, nl2br($email_text), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, '');

 }

You can than also create an alternate $email_text.

Posted

got a error in the code this is the correct one. :oops:

    // build the message content 

   $name = $firstname . " " . $lastname; 



   if (ACCOUNT_GENDER == 'true') { 

      if ($HTTP_POST_VARS['gender'] == 'm') { 

        $email_text = EMAIL_GREET_MR; 

      } else { 

        $email_text = EMAIL_GREET_MS; 

      } 

   } else { 

     $email_text = EMAIL_GREET_NONE; 

   } 



   $email_text .= EMAIL_WELCOME . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING; 

   tep_mail($name, $email_address, EMAIL_SUBJECT, nl2br($email_text), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); 

 }



// send emails to other people 

 if (SEND_EXTRA_ORDER_EMAILS_TO != '') { 

   tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_SUBJECT, nl2br($email_text), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, ''); 

 }

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...