Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

forget password error


amarbhanu

Recommended Posts

forget password,

 

define('EMAIL_PASSWORD_REMINDER_BODY', 'Dear Mr or Mrs ' . $check_customer['customers_firstname']. '.' . "\n\n" . 'Your new password to \'' . STORE_NAME . '\' is:' . "\n\n" . ' %s' . "\n\n" . 'Kind Regards,'."\n\n" . 'The Wireless Lighting Store');

 

 

when use this code result display by mail without "customers_firstname" so please help me what will be use................

amarbhanu

We don't use Signatures for external links.

Link to comment
Share on other sites

Try

define('EMAIL_PASSWORD_REMINDER_BODY', 'Dear Mr or Mrs %s.' . "\n\n" . 'Your new password to \'' . STORE_NAME . '\' is:' . "\n\n" . ' %s' . "\n\n" . 'Kind Regards,'."\n\n" . 'The Wireless Lighting Store');

and in password_forgotten.php, change

	  tep_mail($check_customer['customers_firstname'] . ' ' . $check_customer['customers_lastname'], $email_address, EMAIL_PASSWORD_REMINDER_SUBJECT, sprintf(EMAIL_PASSWORD_REMINDER_BODY, $new_password), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

to

	  tep_mail($check_customer['customers_firstname'] . ' ' . $check_customer['customers_lastname'], $email_address, EMAIL_PASSWORD_REMINDER_SUBJECT, sprintf(EMAIL_PASSWORD_REMINDER_BODY, $check_customer['customers_firstname'], $new_password), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

Always back up before making changes.

Link to comment
Share on other sites

Try
define('EMAIL_PASSWORD_REMINDER_BODY', 'Dear Mr or Mrs %s.' . "\n\n" . 'Your new password to \'' . STORE_NAME . '\' is:' . "\n\n" . ' %s' . "\n\n" . 'Kind Regards,'."\n\n" . 'The Wireless Lighting Store');

and in password_forgotten.php, change

	  tep_mail($check_customer['customers_firstname'] . ' ' . $check_customer['customers_lastname'], $email_address, EMAIL_PASSWORD_REMINDER_SUBJECT, sprintf(EMAIL_PASSWORD_REMINDER_BODY, $new_password), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

to

	  tep_mail($check_customer['customers_firstname'] . ' ' . $check_customer['customers_lastname'], $email_address, EMAIL_PASSWORD_REMINDER_SUBJECT, sprintf(EMAIL_PASSWORD_REMINDER_BODY, $check_customer['customers_firstname'], $new_password), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

 

Thanks ecartz, Please give link for learn code customization and how easily create own module

amarbhanu

We don't use Signatures for external links.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...