Jump to content

Recommended Posts

I have member approval running on OSC 2.3.3 and PHP 5.4, when and email is sent from create_account.php in the header of the subject line, listed in this code $name, does not show up in the subject line. it is blank, everything gets inserted into the data base. the email vars are empty.

 

I use $name, $firstname, $lastname and they are blank also. Was working great in OSC 2.2 running PHP 5.2 ?

 

what do I need to change to make this work ?

 

 

 $admin_email_text = $customer_opening . ADMIN_EMAIL_WELCOME . ADMIN_EMAIL_TEXT . EMAIL_WARNING;
 $admin_subject = sprintf(ADMIN_EMAIL_SUBJECT, $name);
 tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $admin_subject, sprintf($admin_email_text, $name), STORE_OWNER, EMAIL_FROM, '');																												  

 

Here is my code where I am trying to pull the data and send in an email

 

 

define('ADMIN_EMAIL_TEXT', '																						

' . $firstname . '<b> ' . $lastname. ', </b>at ' . $company . ', has applied for access to <b>' . STORE_NAME . ' </b>eCommerce web site on ' . strftime(DATE_FORMAT_SHORT) . ' at ' . strftime(DATE_TIME_ONLY) . ' <br />


' . $firstname . ' ' . $lastname . ' <br />																			
' . $company . ' <br />																								
' . $street_address . ' <br />																						
' . $city .', ' . $state .' ' . $postcode . ' <br />																
' . $telephone . ' <br />																							
' . $email_address . '																								

' . "\n\n");																										

 

any help would be appreciated.

 

thanks

Sandwick

Edited by sandwick

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×