lee the bean Posted July 12, 2017 Share Posted July 12, 2017 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 my-email@mydomain.com E-Mail From My Company <my-email@my-domain.com> Send Extra Order Emails To: My Company <my-email@my-domain.com> 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 <my-email@my-domain.com> to my-email@my-domain.com 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: <my-email@my-domain.com> Envelope-to: my-email@my-domain.com 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 my-email@my-domain.com; 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 my-email@my-domain.com; Wed, 12 Jul 2017 07:22:18 +0100 Date: Wed, 12 Jul 2017 07:22:18 +0100 To: My Name <my-email@my-domain.com> From: my-email@my-domain.com Subject: mime off Message-ID: <3e57b978f06c6d5e5f4807cd120df6ac@my-domain.com> 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: <my-email@my-domain.com> Envelope-to: my-email@my-domain.com 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 my-email@my-domain.com; 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 my-email@my-domain.com; Mon, 10 Jul 2017 06:11:06 +0100 Date: Mon, 10 Jul 2017 06:11:18 +0100 To: My Name <my-email@my-domain.com> From: my-email@my-domain.com Subject: mime on Message-ID: <d3e199b6d34fb727e8f4bffa1725e982@my-domain.com> 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 = " my-email@my-domain.com"; $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. Quote Link to comment Share on other sites More sharing options...
♥frankl Posted July 14, 2017 Share Posted July 14, 2017 You are barking up the wrong tree. osCommerce 2.3.4 will not work with PHP version 5.3.28 You need to upgrade your PHP before you can progress further. Quote osCommerce user since 2003! Link to comment Share on other sites More sharing options...
lee the bean Posted July 14, 2017 Author Share Posted July 14, 2017 Thanks for that. I have been running OsC 2.3.4 since its release on PHP 5.3.28. That's not the issue as I have updated to PHP 5.5.38. Please re-read. Quote Link to comment Share on other sites More sharing options...
♥frankl Posted July 14, 2017 Share Posted July 14, 2017 Do you need SMTP (i.e. you are on a Windows server) or can you use sendmail instead? Quote osCommerce user since 2003! Link to comment Share on other sites More sharing options...
lee the bean Posted July 15, 2017 Author Share Posted July 15, 2017 Thanks again. Sorry I thought I'd given all the info to save bouncing q's & a's. But I obviously haven't. Yes I need SMTP. Problem finding the definitive PHPMailer installation instructions is not really relevant to using sendmail. However in answer - problem finding the definitive PHPMailer installation instructions exists on my Windows WAMP server test bed, my live service and development environments - both Linux OS I simply need the 4 questions answered and guidance on what Install "PHPMailer for OsCommerce" as it is explained before means in some versions of online instructions. Quote Link to comment Share on other sites More sharing options...
♥frankl Posted July 16, 2017 Share Posted July 16, 2017 Sendmail just works with Linux. I don't know much about using SMTP as I've never had to use it, nor known anyone that's had to use it and subsequently had problems. Going by the lack of replies, nobody else has either so this looks like a job for the Commercial Support forum. Quote osCommerce user since 2003! Link to comment Share on other sites More sharing options...
tgely Posted July 16, 2017 Share Posted July 16, 2017 https://github.com/tgely/oscommerce2-1/blob/119977546d6bf3b9e66b8dd1c4b5a2581154d24c/catalog/includes/classes/email.php @lee the bean I hope these help. Quote osCommerce based shop owner with minimal design and focused on background works. When the less is more.Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store. Link to comment Share on other sites More sharing options...
lee the bean Posted July 16, 2017 Author Share Posted July 16, 2017 Thank you Gergely. The subtle code changes in email.php allowed PHPMailer class to function just perfectly. I can now proceed to update to PHP 5.6 So for anyone wanting a simple implementation guide here it is.... The Definitive PHPMailer Install Instructions My Store Store Owner My Company E-Mail Address my-email@mydomain.com E-Mail From my-email@my-domain.com Send Extra Order Emails To: my-email@my-domain.com 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 Download PHPMailer from https://github.com/PHPMailer/PHPMailer (current version 5.2.23) & upload to catalog/ext folder Backup email.php files Amend: admin/includes/classes/email.php & /includes/classes/email.php (these two files are identical) Replace (around lines 519), or replace your Pear code: if (EMAIL_TRANSPORT == 'smtp') { return mail($to_addr, $subject, $this->output, 'From: ' . $from . $this->lf . 'To: ' . $to . $this->lf . implode($this->lf, $this->headers) . $this->lf . implode($this->lf, $xtra_headers)); } else { return mail($to, $subject, $this->output, 'From: '.$from.$this->lf.implode($this->lf, $this->headers).$this->lf.implode($this->lf, $xtra_headers)); } } With if (EMAIL_TRANSPORT == 'smtp') { // return mail($to_addr, $subject, $this->output, 'From: ' . $from . $this->lf . 'To: ' . $to . $this->lf . implode($this->lf, $this->headers) . $this->lf . implode($this->lf, $xtra_headers)); // } else { // return mail($to, $subject, $this->output, 'From: '.$from.$this->lf.implode($this->lf, $this->headers).$this->lf.implode($this->lf, $xtra_headers)); // } // } require_once(DIR_FS_CATALOG . 'ext/PHPMailer/PHPMailerAutoload.php'); $pMail = new PHPMailer(); $pMail->IsSMTP(); $pMail->IsHTML(true); $pMail->Host = "mail.mydomain.com"; $pMail->SMTPAuth = true; $pMail->Username = "myemail@mydomain.com "; $pMail->Password = "mypassword"; $pMail->CharSet = "utf-8"; $pMail->From = $from_addr; $pMail->FromName = $from_name; $pMail->addAddress($to_addr, $to_name); $pMail->Subject = $subject; $pMail->Body = $this->html; $pMail->AltBody = $this->text; if (!$pMail->Send()) { return false; } else { $pMail->clearAddresses(); $pMail->clearAttachments(); return true; } } } Replace host, username and password values with your Authenticated SMTP parameters. Now all auto-generated emails from oscommerce will be sent with HTML, with a from address of My Company <myemail@mydomwein.com> Emails sent via Tools -> Send Email, and newsletter emails will be send with HTML, with a from address of myemail@mydomwein.com. Once again, thank you Gergely. oscMarket 1 Quote Link to comment Share on other sites More sharing options...
famaca Posted October 18, 2017 Share Posted October 18, 2017 I'm trying to install the phpmailer, but the problem is where can I download it, because from the link you show I download a folder called PHPMailer-master. Inside this folder I can't find the file PHPMailerAutoload.php, so I'm not sure if I downloaded the correct folder. Could you guide me how to download it correctly? Thank you, Regards Quote Link to comment Share on other sites More sharing options...
lee the bean Posted October 18, 2017 Author Share Posted October 18, 2017 Looks like there has been a major update from v5.2, found legacy version here: https://github.com/PHPMailer/PHPMailer/tree/5.2-stable Quote Link to comment Share on other sites More sharing options...
Eim2 Posted November 4, 2017 Share Posted November 4, 2017 Hello, I installed latest phpmailer together with email classes from Gergely's github sumbits. It works really very nicely from all sides of my website even with file attachements defined in language files. I just cant figure out how to dynamically attach the pdf invoices in the order processing mails as before the changes with sendmail. I use a function called from orders.php named 'tep_mail_pdf_attach' in general.php. As I have very few php knowledge I am, it seems, absolutely unable to retrieve the pdf file path and name. When I hard code in email.php like: $my_path = "path_to_file/filename.php" and $phpMail->AddAttachment($my_path); the attachment is sent out seemlessly but of course the invoice changes with each order ... As I understand the build_message function will not work with the new email class but in general.php that function is needed: function tep_mail_pdf_attach($to_name, $to_email_address, $email_subject, $email_text, $from_email_name, $from_email_address, $file, $filename, $filetype) { if (SEND_EMAILS != 'true') return false; $message = new email(array('X-Mailer: osCommerce')); $text = strip_tags($email_text); if (email_USE_HTML == 'true') { $message->add_html($text); } else { $message->add_text($text); } $attachment = fread(fopen($file, "r"), filesize($file)); $message->add_attachment($attachment, $filename, $filetype); $message->build_message(); $message->send($to_name, $to_email_address, $from_email_name, $from_email_address, $email_subject); } Could someone help out even if the problem certainly is in adapting the invoice pdf contrib's function, it would be nice. Thanks a lot in advance. David Quote david Link to comment Share on other sites More sharing options...
tgely Posted November 4, 2017 Share Posted November 4, 2017 (edited) You should add attachment file code part into the tp_email_checkout_process.php. function build() { global $file, $filetype, $filename... . . $attachment = fread(fopen($file, "r"), filesize($file)); $$mimemessage->add_attachment($attachment, $filename, $filetype); Edited November 4, 2017 by tgely Quote osCommerce based shop owner with minimal design and focused on background works. When the less is more.Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store. Link to comment Share on other sites More sharing options...
Eim2 Posted November 5, 2017 Share Posted November 5, 2017 Thank you Gergely for replying. Pdf invoices are only sent out when needed. checkout_process.php actually shall not be used. (on my osc 2.3.4, standard, I can't find tp_email_checkout_process.php) My question should have been: With the new class in email.php, how to automatically attach pdf invoices in the order notifications mails when orders are processed by myself from the admin side ? Present code in admin/orders.php: Quote $check_status_query = tep_db_query("select customers_name, customers_email_address, orders_status, date_purchased, pdf_invoice from " . TABLE_ORDERS . " where orders_id = '" . (int)$oID . "'"); $check_status = tep_db_fetch_array($check_status_query); ......................................... ........................................ if(tep_not_null($check_status['pdf_invoice']) && isset($_POST['notify_invoice']) && ($_POST['notify_invoice'] == 'on')) { $file = SAVE_FOLDER . $check_status['pdf_invoice']; $filename = $check_status['pdf_invoice']; $filetype = 'application/pdf'; $invoice_sent = '1'; } tep_mail_pdf_attach($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT, $email, '=?utf-8?B?' .base64_encode(STORE_OWNER).'?=', STORE_OWNER_EMAIL_ADDRESS, $file, $filename, $filetype); // function build() { // global $file, $filetype, $filename.. //. //. // $attachment = fread(fopen($file, "r"), filesize($file)); // $$mimemessage->add_attachment($attachment, $filename, $filetype); $customer_notified = '1'; } Do you mean the tep_mail_pdf_attach function should not be called from general.php but could be modified and set in orders.php to include the attachment code (build message code) ? It would this way put the values of ( $file, $filetype, $filename) into the email class add_attachment function ? I have found an example working with the new email class on how to send attachments to customers from admin/mail.php But how to do the changes in orders.php ... ? I am sorry but I have no knowledge in function building. Quote david Link to comment Share on other sites More sharing options...
RAC Posted November 27, 2018 Share Posted November 27, 2018 Hello @tgely Sorry, I know this is an old post, however will this work on a linux server? My host has disabled the standard mail as it is a shared server. Regards Shaun Quote Link to comment Share on other sites More sharing options...
RAC Posted November 29, 2018 Share Posted November 29, 2018 OK, I have installed this addon but receive a HTTP ERROR 500 when attempting to send a customer email from admin. Also the same error when using the contact us link from my website. My admin error log gives [28-Nov-2018 05:25:05 Europe/London] PHP Warning: require_once(****Shop/ext/PHPMailer/PHPMailerAutoload.php): failed to open stream: No such file or directory in /****admin/includes/classes/email.php on line 533 [28-Nov-2018 05:25:05 Europe/London] PHP Fatal error: require_once(): Failed opening required '/****Shop/ext/PHPMailer/PHPMailerAutoload.php' (include_path='.:/opt/alt/php70/usr/share/pear') in /****admin/includes/classes/email.php on line 533 [29-Nov-2018 04:02:02 Europe/London] PHP Warning: require_once(****Shop/ext/PHPMailer/PHPMailerAutoload.php): failed to open stream: No such file or directory in /****/admin/includes/classes/email.php on line 533 [29-Nov-2018 04:02:02 Europe/London] PHP Fatal error: require_once(): Failed opening required '/****Shop/ext/PHPMailer/PHPMailerAutoload.php' (include_path='.:/opt/alt/php70/usr/share/pear') in /****admin/includes/classes/email.php on line 533 Line 533 is require_once(DIR_FS_CATALOG . 'ext/PHPMailer/PHPMailerAutoload.php'); Any Ideas? Quote Link to comment Share on other sites More sharing options...
RAC Posted November 29, 2018 Share Posted November 29, 2018 Please ignore previous post. OK, I have installed addon but emails do not send from admin contact customer, and the contact us page from my website on send, the page just keeps refreshing. Error log states [29-Nov-2018 04:28:00 Europe/London] PHP Warning: require_once(****Shop/ext/PHPMailer/PHPMailerAutoload.php): failed to open stream: No such file or directory in /***Shop/includes/classes/email.php on line 533 [29-Nov-2018 04:28:00 Europe/London] PHP Fatal error: require_once(): Failed opening required '/***Shop/ext/PHPMailer/PHPMailerAutoload.php' (include_path='.:/opt/alt/php70/usr/share/pear') in /***Shop/includes/classes/email.php on line 533 Line 533 is require_once(DIR_FS_CATALOG . 'ext/PHPMailer/PHPMailerAutoload.php'); Any Ideas? Quote Link to comment Share on other sites More sharing options...
♥14steve14 Posted November 29, 2018 Share Posted November 29, 2018 Is that file there. Quote REMEMBER BACKUP, BACKUP AND BACKUP Link to comment Share on other sites More sharing options...
♥JcMagpie Posted November 29, 2018 Share Posted November 29, 2018 On 11/27/2018 at 5:15 AM, RAC said: My host has disabled the standard mail as it is a shared server. Simple answer find a new host! a shared server is no reason to disable mail. Quote Link to comment Share on other sites More sharing options...
RAC Posted November 30, 2018 Share Posted November 30, 2018 17 hours ago, 14steve14 said: Is that file there. Hi Steve Yes that file is there, that was the first thing I checked, <?php /** * PHPMailer SPL autoloader. * PHP Version 5 * @package PHPMailer * @link https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project * @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk> * @author Jim Jagielski (jimjag) <jimjag@gmail.com> * @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net> * @author Brent R. Matzelle (original founder) * @copyright 2012 - 2014 Marcus Bointon * @copyright 2010 - 2012 Jim Jagielski * @copyright 2004 - 2009 Andy Prevost * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License * @note This program is distributed in the hope that it will be useful - WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. */ /** * PHPMailer SPL autoloader. * @param string $classname The name of the class to load */ function PHPMailerAutoload($classname) { //Can't use __DIR__ as it's only in PHP 5.3+ $filename = dirname(__FILE__).DIRECTORY_SEPARATOR.'class.'.strtolower($classname).'.php'; if (is_readable($filename)) { require $filename; } } if (version_compare(PHP_VERSION, '5.1.2', '>=')) { //SPL autoloading was introduced in PHP 5.1.2 if (version_compare(PHP_VERSION, '5.3.0', '>=')) { spl_autoload_register('PHPMailerAutoload', true, true); } else { spl_autoload_register('PHPMailerAutoload'); } } else { /** * Fall back to traditional autoload for old PHP versions * @param string $classname The name of the class to load */ function __autoload($classname) { PHPMailerAutoload($classname); } } And I am running php 7. Regards Shaun Quote Link to comment Share on other sites More sharing options...
RAC Posted November 30, 2018 Share Posted November 30, 2018 12 hours ago, JcMagpie said: Simple answer find a new host! a shared server is no reason to disable mail. Hello Zahid My host states : Php mail function is disabled on our shared server because of security reason. We would suggest you kindly use SMTP authentication in your php mailing script. I used to have several work related websites using a WHUK reseller account, but now I only have this one. I guess changing host would be a sensible choice, and probably cheaper! I see the email problem as the most serious thing wrong with my site, without this working how can anyone run a site? I even experimented with the function __construct but this through a 500 error! After searching the forum this seemed my best option as there is a lack of install and configuration instructions with many of the other contributions. Regards Shaun Quote Link to comment Share on other sites More sharing options...
♥JcMagpie Posted November 30, 2018 Share Posted November 30, 2018 (edited) 4 hours ago, RAC said: Php mail function is disabled on our shared server because of security reason. We would suggest you kindly use SMTP authentication in your php mailing script. That is utter nonsense, clearly your host has no idea what they are doing. Perhaps they are using an out of date PHP! What version are they running on the server? (This is not what version your are using , it’s what the server is running) It’s quite simple just give a few other hosts a call and see what they say! WHUK! look to be just a reseller, you need to be careful with hosts. So many resellers with fancy websites but when you look a bit deeper all they are doing is putting a new dress on the same mannequin! many have very little actual experience as all they are doing is buying a larger re seller chunk from another provider! 😂 I have a reseller account and could set my self up as a host! pity the poor sod that ever used me, Man even I would not use me! Edited November 30, 2018 by JcMagpie Quote Link to comment Share on other sites More sharing options...
RAC Posted December 4, 2018 Share Posted December 4, 2018 OK I am in conversation with my host. But I still need to attempt to sort this smtp out. I have a new error message in admin/error_log [30-Nov-2018 03:25:28 Europe/London] PHP Fatal error: Uncaught LogicException: Function 'PHPMailerAutoload' not found (function 'PHPMailerAutoload' not found or invalid function name) in /****Shop/ext/PHPMailer/PHPMailerAutoload.php:36 Stack trace: #0 /****Shop/ext/PHPMailer/PHPMailerAutoload.php(36): spl_autoload_register('PHPMailerAutolo...', true, true) #1 /****admin/includes/classes/email.php(533): require_once('/home/shaun1d/p...') #2 /***admin/mail.php(52): email->send('J***D***', '****@hotmail...', '', 'info@retro-anti...', 'test') #3 {main} thrown in /****Shop/ext/PHPMailer/PHPMailerAutoload.php on line 36 line 36 spl_autoload_register('PHPMailerAutoload'); line 533 require_once(DIR_FS_CATALOG . 'ext/PHPMailer/PHPMailerAutoload.php'); line 52 $mimemessage->send($mail['customers_firstname'] . ' ' . $mail['customers_lastname'], $mail['customers_email_address'], '', $from, $subject); Shaun Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.