Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Search the Community

Showing results for tags 'html email'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News and Announcements
    • News and Announcements
  • osCommerce v4.x
    • General Support
    • Migration from old osCommerce
    • Design and Templates
    • Apps / Add-ons
    • Translations
    • API and import/export
    • Marketplace integration
    • Manuals and How-to
    • Blog's discussion
  • osCommerce Online Merchant v2.x
    • General Support
    • osCommerce Online Merchant Community Bootstrap Edition
    • Add-Ons
  • Development
  • General
    • General Discussions
    • Live Shop Reviews
    • Security
    • Commercial Support Inquiries
    • Developer Feedback

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Real Name


Location


Interests


Website

Found 1 result

  1. Specification: HTTP Server: Apache/2.4.23 (Unix) PHP Version: 5.3.28 (Zend: 2.3.0) osCommerce: 2.3.4 Sending SMTP HTML enabled emails using Pear SMTP Authentication script via amended /includes/classes/email.php in front/backend My Store E-Mail Address [email protected] E-Mail From My Company <[email protected]> Send Extra Order Emails To: My Company <[email protected]> E-Mail Options E-Mail Transport Method smtp E-Mail Linefeeds LF Use MIME HTML When Sending Emails true Verify E-Mail Addresses Through DNS true Send E-Mails true This configuration successfully sends all auto-generated emails and admin Send Emails and Newsletter Manager emails with HTML mark-up. I now need to update PHP version to 5.6. PEAR at PHP version 5.5.38 gives depreciated warnings: PHP Deprecated: Non-static method Mail::factory() PEAR at PHP version 5.6 fails to send emails with following error: PHP Strict Standards: Non-static method Mail::factory() PHP Strict Standards: Non-static method Mail_RFC822::parseAddressList() So time to look for alternative SMTP Authentication script and found several add-ons using PHPMailer. However they employ differing implementations. oscom-phpmailer4osc-smtp-with-authentication-ZaWWz-lQp7x 2006 PHPMailer from http://phpmailer.sourceforge.net (currently version 1.73) Includes class.phpmailer.php & class.smtp.php oscom-phpmailer-class-to-send-email-JqJxG-juVcE 2010 class.phpmailer.php version 5.1 sql database table update; backend/frontend class.phpmailer.php & class.smtp.php, updated application_top.php, general.php; backend mail.php, newsletter.php and product_notification.php oscom-phpmailer-for-oscommerce-X1ZFh-Wgg0V 2008 instruction only, amend backend/frontend configure.php replace lines that don’t exist in the file so add-on not valid. oscom-smtp-email-pX3Ou-aO1yH 2015 class.phpmailer.php version 5.2 backend/frontend email.php, class.phpmailer.php & class.smtp.php Current phpmailer.sourceforge.net is 5.2.23 (pre 5.2.18 has security vulnerability). It is unclear from the information within the add-on versions of class.phpmailer.php which versions they relate to from the original code on sourceforge. Many online instructions simply say install class.phpmailer.php (v5.2) or latest sourceforge version, add relevant code to email.php and configure Use MIME HTML When Sending Emails: false in E-Mail Options. Having tried the 2015 add-on (ie 2 x class.phpmailer.php, class.smtp.php and amended email.php) and the latest sourceforge 5.2.23 version (full folder files) I cannot get Tools -> Send Email to send a valid HTML email. Firstly I had to change My Store -> E-Mail From My Company <[email protected]> to [email protected] before any emails would send. With MIME HTML When Sending Emails: false no HTML is sent in message and received in outlook as: This is a heading 1 this is text this is heading 2 a little brown fox jumped over the hedge Text sent was: <h1>This is a heading 1</h1> this is text <h2>this is heading 2</h2> a little brown fox jumped over the hedge Properties X-MUNQ: aebac272d56eaa9b5c93265e7f828ecb X-MSK: HYD=0.517008005 Return-path: <[email protected]> Envelope-to: [email protected] Delivery-date: Wed, 12 Jul 2017 07:22:19 +0100 Received: from mail by mail.server.com with spamvirus-scanned (Exim 4.87) id 1dVB2R-0003Uz-0r for [email protected]; Wed, 12 Jul 2017 07:22:19 +0100 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.server.com X-Spam-Level: * X-Spam-Status: No, score=1.7 required=5.0 tests=HTML_MESSAGE, HTML_MIME_NO_HTML_TAG,MIME_HTML_ONLY shortcircuit=no autolearn=disabled version=3.3.1 Received: from mail.server.com ([IP.IP.IP.IP] helo=my-domain.com) by mail.server.com with esmtpsa (TLSv1:ECDHE-RSA-AES256-SHA:256) (Exim 4.87) id 1dVB2Q-0003TC-Tt for [email protected]; Wed, 12 Jul 2017 07:22:18 +0100 Date: Wed, 12 Jul 2017 07:22:18 +0100 To: My Name <[email protected]> From: [email protected] Subject: mime off Message-ID: <[email protected]> X-Mailer: PHPMailer 5.2.23 (https://github.com/PHPMailer/PHPMailer) MIME-Version: 1.0 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-KLMS-Rule-ID: 1 X-KLMS-Message-Action: clean X-KLMS-AntiVirus: Kaspersky Security 8.0 for Linux Mail Server, version 8.0.1.705, bases: 2017/07/12 01:47:00 #10048106; khse: 2014-01-23 rollback X-KLMS-AntiVirus-Status: Clean, skipped With MIME HTML When Sending Emails: true the email received in outlook as: --=_2a94c0d566e11ca9872b7af136e844f9 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit No error debug No error Errors are not cool --=_2a94c0d566e11ca9872b7af136e844f9 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable No error debug No error Errors = are not cool --=_2a94c0d566e11ca9872b7af136e844f9-- Text sent was: <h1>No error debug</h1> No error <h2>Errors are not cool</h2> Properties: X-MUNQ: e80dccd3256f0d6c51b84a9d5d3af320 X-MSK: HYD=0.528810005 Return-path: <[email protected]> Envelope-to: [email protected] Delivery-date: Mon, 10 Jul 2017 06:11:06 +0100 Received: from mail by mail.server.com with spamvirus-scanned (Exim 4.87) id 1dUQyQ-0000sK-9G for [email protected]; Mon, 10 Jul 2017 06:11:06 +0100 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.server.com X-Spam-Level: * X-Spam-Status: No, score=1.7 required=5.0 tests=HTML_MESSAGE, HTML_MIME_NO_HTML_TAG,MIME_HTML_ONLY,TVD_RCVD_IP shortcircuit=no autolearn=disabled version=3.3.1 Received: from mail.server.com ([IP.IP.IP.IP] helo=my-domain.com) by mail.server.com with esmtpsa (TLSv1:ECDHE-RSA-AES256-SHA:256) (Exim 4.87) id 1dUQyQ-0000pv-0O for [email protected]; Mon, 10 Jul 2017 06:11:06 +0100 Date: Mon, 10 Jul 2017 06:11:18 +0100 To: My Name <[email protected]> From: [email protected] Subject: mime on Message-ID: <[email protected]> X-Mailer: PHPMailer 5.2.23 (https://github.com/PHPMailer/PHPMailer) MIME-Version: 1.0 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-KLMS-Rule-ID: 1 X-KLMS-Message-Action: clean X-KLMS-AntiVirus: Kaspersky Security 8.0 for Linux Mail Server, version 8.0.1.705, bases: 2017/07/10 00:40:00 #10018344; khse: 2014-01-23 rollback X-KLMS-AntiVirus-Status: Clean, skipped Longer messages are interspersed with equals signs (as seen in the h2 text). Longer messages with many HTML snippets completely screws up (technical term) the message body text. This is the code in email.php: require_once(DIR_FS_CATALOG . ext/PHPMailer/PHPMailerAutoload.php"); require_once(DIR_FS_CATALOG . "ext/PHPMailer/class.phpmailer.php"); $pMail = new PHPMailer(); $pMail->From = $from_addr; $pMail->FromName = $from_name; $pMail->IsSMTP(); $pMail->Host = "mail.my-domain.com"; $pMail->Username = " [email protected]"; $pMail->Password = "mypassword"; $pMail->SMTPAuth = true; $pMail->Subject = $subject; $pMail->Body = $this->output; $pMail->AddAddress($to_addr, $to_name); $pMail->IsHTML(true); return $pMail->Send(); $pMail->ClearAddresses(); $pMail->ClearAttachments(); } Amending $pMail->IsHTML(false); makes no difference to received message ie. it is received in non-HTML followed by HTML in body of message. Here are my questions: 1. What is the definitive PHPMailer implementation? 2. What version of PHPMailer class from sourceforge is used in oscommerce v2.3.4? 3. Is the implementation simply class.phpmailer.php, class.smtp.php and code to email.php only? 4. Is the sourceforge PHPMailer class amended to function in oscommerce? I suspect there are other code changes I’ve not implemented as some instructions include the cryptic line: Install "PHPMailer for OsCommerce" as it is explained before. I have no idea what this related to. Having followed many forum entries I am no closer to understanding what is required. Response eagerly awaited and gratefully received.
×
×
  • Create New...