Community Add-Ons

Maintainers: Olof Larsson
Add file to this package
Top » Features

U HTML Emails
for osCommerce Online Merchant v2.2

This is an html email contribution for osCommerce Online Merchant [2.2rc2]. It will replace the standard emails with emails that have more advanced layout and design. The contribution allows you to have different "html email layouts" installed at the same time. New layouts can easily be created and installed. You can easily change between the different "html email layouts" from a dropdown menu, "E-Mail Options"->"Html Email Layout", in the admin panel.

Screenshots is included.

Support thread is: http://forums.oscommerce.com/index.php?showtopic=296492

Legend:  Download   Report
Expand All / Collapse All
Addon U HTML with extra layout for text/plain with linefeeds mixit 25 Dec 2008  

Addon U HTML with extra layout for text/plain with linefeeds.

U HTML is a straight foreward solution for HTML-Emails, very easy to install and with great results.

ADDON: http://addons.oscommerce.com/info/5825

Version v2.1 outputs one line of text without linefeeds (n, <br>) for 'non-HTML' e-mail viewers (moblie, webmail, etc).

Forum: http://forums.oscommerce.com/index.php?showtopic=296492&st=120

Solution is relative simple without any heavy modifications (as far I can see).

Modification IN ADDITION to U HTML v2.1 (2008/08/02):

--- step 1 modify admin/includes/functions/general.php AND catalog/includes/functions/general.php ---

Find:
function tep_mail($to_name, $to_email_address, $email_subject, $email_text, $from_email_name, $from_email_address) {
if (SEND_EMAILS != 'true') return false;

// Instantiate a new mail object
$message = new email(array('X-Mailer: osCommerce'));

// Build the text version
$text = strip_tags($email_text);
if (EMAIL_USE_HTML == 'true') {
$message->add_html($email_text, $text);

Add after:
//--- Beginning of addition: Ultimate HTML Emails ---//
global $UHTML_html_text;
if (tep_not_null($UHTML_html_text) ){
$message->html_text = $UHTML_html_text;
}
//--- End of addition: Ultimate HTML Emails ---//

--- step 2 add text/plain ---

For the e-mail you want to modify the text/plain go to:
catalog/includes/modules/UHtmlEmails/LAYOUT_NAME/FILENAME.php

At the end of the file, before '?>' insert:

$UHTML_html_text = "This is the text/plain codenwith linefeeds.nnYou can also use the variables used in the $html_email.";

That's all...

Same text in file.

U HTML Emails 2.1 Olof Larsson 2 Aug 2008  
U HTML Emails 2.0b Olof Larsson 27 Jul 2008  
Warning about error Olof Larsson 17 Jul 2008  
U HTML Emails v2.0a Olof Larsson 7 Jul 2008  
U Html Emails v2.0 Olof Larsson 2 Jul 2008  
U HTML Emails V1.2b liliagiba 1 Jul 2008  
U HTML Emails V1.2a llaurator 30 Jun 2008  
French Files poloranger 8 Apr 2008  
U HTML Emails V1.2 Olof Larsson 27 Mar 2008  
U HTML Emails V1.1 Olof Larsson 18 Mar 2008  
U HTML Emails Olof Larsson 18 Mar 2008