taburner Posted December 4, 2006 Posted December 4, 2006 Is there a way to get an email notification when I have a new affiliate sign up on the site??? Thank you, Tara
ASJ Posted January 10, 2007 Posted January 10, 2007 I have set this up in my store. I had to hand code it in... In this section of code on affiliate_signup.php around line 278: tep_session_register('affiliate_id'); $affiliate_email = $a_email_address; $affiliate_name = $a_firstname . ' ' . $a_lastname; tep_session_register('affiliate_email'); tep_session_register('affiliate_name'); tep_redirect(tep_href_link(FILENAME_AFFILIATE_SIGNUP_OK, '', 'SSL')); } } Change it to something like this in: tep_session_register('affiliate_id'); $affiliate_email = $a_email_address; $affiliate_name = $a_firstname . ' ' . $a_lastname; tep_session_register('affiliate_email'); tep_session_register('affiliate_name'); // added PHPMail fuction mail('', 'Email Subject', "$affiliate_name has just signed up as an Affiliate with the email address $affiliate_email.", "To: [email protected]\n" . "From: YourName <[email protected]>\n" . "MIME-Version: 1.0\n" . "Content-type: text/html; charset=iso-8859-1"); // end added PHPMail function tep_redirect(tep_href_link(FILENAME_AFFILIATE_SIGNUP_OK, '', 'SSL')); } } There is another way to do it, but you would get a copy of the welcome message that they recieve with login, etc. and I personally don't like doing that. Hope this helps.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.