Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

customize email - how do I add links?


tigergirl

Recommended Posts

I am trying to customise the automated e-mails. I manage to get the email to look ok, but when I try to add a link to my website I get parse errors. At the moment I'm altering password_forgotten.php. I'm probably not following the rules of php or html - its still quite new to me.

 

I tried using

<a href="http://mysite.co.uk/login.php"><u>www.mysite.co.uk/login.php</u></a>

 

within the define('EMAIL_PASSWORD_REMINDER_BODY'

 

which gives me

Parse error: syntax error, unexpected T_STRING in /home/user/public_html/includes/languages/english/password_forgotten.php on line 23

 

Have I just missed out some ' or . or .......

or do I need to define something? Can I use HTTP_SERVER in some way?

 

I did a forum search but can't find anything suitable.

Please help, thanks. :blink:

I'm feeling lucky today......maybe someone will answer my post!

I do try and answer a simple post when I can just to give something back.

------------------------------------------------

PM me? - I'm not for hire

Link to comment
Share on other sites

just write in this way and your error will solve

 

<a href=\"http://mysite.co.uk/login.php\"><u>www.mysite.co.uk/login.php</u></a>

 

Hi, thanks for replying. I tried your suggestion and I don't get errors.

But, I want to have underlined clickable links within the email. What you suggested only shows the url, you can't click on it to take you to the url.

 

I know I'm missing something small, but it's only easy when you know how!

 

Anything else I can try?

 

ThanQ muchly

:thumbsup:

I'm feeling lucky today......maybe someone will answer my post!

I do try and answer a simple post when I can just to give something back.

------------------------------------------------

PM me? - I'm not for hire

Link to comment
Share on other sites

This is the code I'm using if it helps:

 

define('EMAIL_PASSWORD_REMINDER_BODY', 'Thank you for requesting a new password from www.mysite.Co.Uk.' . "\n\n" . 'The new password was requested from a computer on the following IP address: ' . $REMOTE_ADDR . '.' . "\n\n" . 'Your new password to \'' . STORE_NAME . '\' is:' . "\n\n" . ' %s' . "\n\n" . 'For security, we recommend that you change this password to something more memorable. Please go to <a href="http://mysite.co.uk/login.php"><u>www.mysite.co.uk/login.php</u></a> . Login using your new password, and under \'My Account\' choose \'Change My Account Password\'.' . "\n\n" . 'Thank you for choosing mysite.Co.Uk.');

 

I'd like all my url's to be clickable links.

Cheers

I'm feeling lucky today......maybe someone will answer my post!

I do try and answer a simple post when I can just to give something back.

------------------------------------------------

PM me? - I'm not for hire

Link to comment
Share on other sites

This is the code I'm using if it helps:

 

define('EMAIL_PASSWORD_REMINDER_BODY', 'Thank you for requesting a new password from www.mysite.Co.Uk.' . "\n\n" . 'The new password was requested from a computer on the following IP address: ' . $REMOTE_ADDR . '.' . "\n\n" . 'Your new password to \'' . STORE_NAME . '\' is:' . "\n\n" . ' %s' . "\n\n" . 'For security, we recommend that you change this password to something more memorable. Please go to <a href="http://mysite.co.uk/login.php"><u>www.mysite.co.uk/login.php</u></a> . Login using your new password, and under \'My Account\' choose \'Change My Account Password\'.' . "\n\n" . 'Thank you for choosing mysite.Co.Uk.');

 

I'd like all my url's to be clickable links.

Cheers

 

 

This seems to be a problem when viewing emails in Hotmail, the links appear in Outlook Express no problem. Anyone know how to get round this????

I'm feeling lucky today......maybe someone will answer my post!

I do try and answer a simple post when I can just to give something back.

------------------------------------------------

PM me? - I'm not for hire

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...