Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted (edited)

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

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...