Zen Cart Logo
Forums / General Questions / Line breaks in welcome email aren't working

Line breaks in welcome email aren't working

Locked

Views: 668

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
13 Jul 2010, 1:49 AM
#1
vivani avatar

vivani

New Zenner

Join Date:
Mar 2010
Posts:
1
Plugin Contributions:
0

Line breaks in welcome email aren't working

Hello,

I am on Zencart V1.3.9a.

I am editing the "create_account" file with the content for my store's welcome email. All content that I've updated in the "create_account" file displays correctly in the welcome email.

My problem is that the line breaks in the following don't work.

// greeting salutation
define('EMAIL_SUBJECT', 'Welcome to ' . STORE_NAME . ' Online Store');
define('EMAIL_GREET_MR', "\n" . 'Dear Mr %s,' . "\n\n" );
define('EMAIL_GREET_MS', "\n" . 'Dear Ms %s,' . "\n\n" );
define('EMAIL_GREET_NONE', "\n" . 'Dear %s,' . "\n\n" );

// First line of the greeting
define('EMAIL_WELCOME', 'Welcome to <strong>' . STORE_NAME . '</strong> online store.' . "\n\n");

Below is how the text displays in the email. There's only one line break at the end of each line. I would like an extra one so that there's spacing between the "Dear..." and the "Welcome..." and the "You are now registered...".

Dear Mr Hopko,
Welcome to The DIY Guys online store.
You are now registered with our store and have account privileges, which include:

I've added additional line breaks ("\n\n\n\n"), but no luck!

Does anyone know why this isn't working?

Thank you for your time and help!

Eva :smile:

13 Jul 2010, 8:46 AM
#2
robwuk avatar

robwuk

Zen Follower

Join Date:
Aug 2005
Location:
United Kingdom
Posts:
458
Plugin Contributions:
0

Re: Line breaks in welcome email aren't working

not 100% but the what you are altering is a string value, for the varibale, and will be treated as html, you would have to use <br /> and <br /><br /> if you wanted returns

however im not sure this is the correct place to do this, as these are variables, these variables will be placed into the welcome email, it may be a better idea to alter this template (welcome template) in the /email/ folder

Rob