Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to send account creation email notification in Rich Text


arminder

Recommended Posts

Posted

Hi All,

 

When I am trying to create a new account for a customer in my store, the email confirmation I receive is in plain text with all tag information and not rich text format. Use MIME HTML when sending email is already set to true. osCommerece version is 2.2

 

Here is what I get

 

"Dear XYZ

 

We welcome you to <b>TEST STORE</b>.

 

You can now take part in the <b>various services</b> we have to offer you. Some of these services include:

 

<li><b>Permanent Cart</b> - Any products added to your online cart remain there until you remove them, or check them out.

<li><b>Address Book</b> - We can now deliver your products to another address other than yours! This is perfect to send birthday gifts direct to the birthday-person themselves.

<li><b>Order History</b> - View your history of purchases that you have made with us.

<li><b>Products Reviews</b> - Share your opinions on products with our other customers.

 

For help with any of our online services, please email the store-owner: [email protected]

 

<b>Note:</b> This email address was given to us by one of our customers. If you did not signup to be a member, please send an email to [email protected]."

 

Can you please help me fix this issue? So that text tagged as <b>bold</b> shows up as bold

 

Here is the content of the php file: create_account.php

 

<?php

/*

$Id: create_account.php,v 1.11 2003/07/05 13:58:31 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

define('NAVBAR_TITLE', 'Create an Account');

 

define('HEADING_TITLE', 'My Account Information');

 

define('TEXT_ORIGIN_LOGIN', '<font color="#FF0000"><small>NOTE:</font></small> If you already have an account with us, please login at the <a href="%s"><u>login page</u></a>.');

 

define('EMAIL_SUBJECT', 'Welcome to ' . STORE_NAME);

define('EMAIL_GREET_MR', 'Dear Mr. %s,' . "\n\n");

define('EMAIL_GREET_MS', 'Dear Ms. %s,' . "\n\n");

define('EMAIL_GREET_NONE', 'Dear %s' . "\n\n");

define('EMAIL_WELCOME', 'We welcome you to <b>' . STORE_NAME . '</b>.' . "\n\n");

define('EMAIL_TEXT', 'You can now take part in the <b>various services</b> we have to offer you. Some of these services include:' . "\n\n" . '<li><b>Permanent Cart</b> - Any products added to your online cart remain there until you remove them, or check them out.' . "\n" . '<li><b>Address Book</b> - We can now deliver your products to another address other than yours! This is perfect to send birthday gifts direct to the birthday-person themselves.' . "\n" . '<li><b>Order History</b> - View your history of purchases that you have made with us.' . "\n" . '<li><b>Products Reviews</b> - Share your opinions on products with our other customers.' . "\n\n");

define('EMAIL_CONTACT', 'For help with any of our online services, please email the store-owner: ' . STORE_OWNER_EMAIL_ADDRESS . '.' . "\n\n");

define('EMAIL_WARNING', '<b>Note:</b> This email address was given to us by one of our customers. If you did not signup to be a member, please send an email to ' . STORE_OWNER_EMAIL_ADDRESS . '.' . "\n");

?>

 

Please help!

 

Thanks,

Arminder

  • 2 weeks later...
Posted

I was seeing this issue as well when testing email notifications. Two things occurred to me, one, if you have your personal inbox set up to view incoming messages as rich text format, this may be overriding formatting that os email notifications are being sent as. By default, Hotmail for example is set up to receive in Rich text format. Ensure that your recipient email is set to view html. Two, double check that Use MIME HTML When Sending Emails, is set to true. When I changed this, I could then see bolded items in my notification emails.

 

Your create_account.php code looks good, so I am thinking that the issue must be with your OS or email settings.

Archived

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

×
×
  • Create New...