Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Space at beginning of Welcome Email


Recommended Posts

Ok, I have got to be completely blind, but I cannot for the life of me figure out why there is an extra line in the welcome mail before Dear , I have searched and have found nothing that shows an extra line before the Greeting. I do not require a person to enter their sex so all messages are sent with EMAIL_GREET_NONE. Any ideas where this extra line is coming from?


In /catalog/create_account_process.php I have the following code:

    // 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;



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

   tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS, '', 'SSL'));


And in catalog/includes/languages/english/create_account_proces.php I have the following:

define('EMAIL_GREET_NONE', 'Dear ' . stripslashes($HTTP_POST_VARS['firstname']) . ',' . "nn");

Remember... Pillage BEFORE you burn!

Link to comment
Share on other sites


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

  • Create New...