Jump to content


Popular Content

Showing content with the highest reputation on 08/15/2020 in all areas

  1. 1 point
    HI, First of all a big thanks to @burt and all the other contributors to Phoenix. I did a clean DB install and moved my old data over without a hitch. It was easy thanks to you! Has anyone set up SMTP mail with authentication successfully on Phoenix I'm on IIS and don't have the sendmail option. I've had it running in 2.2 and I had it running in 234BS. I'm an amateur and I have looked through previous addons to see if there is anything I can adapt to Phoenix. The code has obviously changed, in /includes/email.php and admin doesn't seem to have a classes/email.php either. I've looked at both general.php files and see that the call to send mail is there but no if (EMAIL_TRANSPORT == 'smtp') in any of the files. I've installed the latest PHPmailer. I've changed $PHPmailer to $pmail as per the documentation. I've been at this for over a week and I'm stuck. Can anyone advise? Thanks Stewart
  2. 1 point

    Slim Checkout for BS

    Uploaded Version 1.2 Slim Checkout 1.2 Compatible with Phoenix Tested with Phoenix - updated for Phoenix
  3. 1 point

    Slim Checkout for BS

    Thanks for trying. You can adjust it in the module:
  4. 1 point
    Hi Jack, know you have enough on your plate but giving a head's up that PHOENIX breaks the addon because of the new configure.php file : Use of undefined constant ENABLE_SSL - assumed 'ENABLE_SSL' (this will throw an Error in a future version of PHP) in /xx/xx/xx/xx/includes/classes/seo.class.php on line 755 Warning: Use of undefined constant HTTPS_SERVER - assumed 'HTTPS_SERVER' (this will throw an Error in a future version of PHP) in /xx/xx/xx/xx/includes/classes/seo.class.php on line 756 Warning: Use of undefined constant DIR_WS_HTTPS_CATALOG - assumed 'DIR_WS_HTTPS_CATALOG' (this will throw an Error in a future version of PHP) in /xx/xx/xx/htdocs/includes/classes/seo.class.php on line 756 Warning: Use of undefined constant DIR_WS_HTTP_CATALOG - assumed 'DIR_WS_HTTP_CATALOG' (this will throw an Error in a future version of PHP) in /xx/xx/xx/htdocs/includes/classes/seo.class.php on line 753 Warning: Use of undefined constant HTTP_COOKIE_DOMAIN - assumed 'HTTP_COOKIE_DOMAIN' (this will throw an Error in a future version of PHP) in /xx/xx/xx/htdocs/includes/classes/seo.class.php on line 775 Warning: Use of undefined constant HTTPS_COOKIE_DOMAIN - assumed 'HTTPS_COOKIE_DOMAIN' (this will throw an Error in a future version of PHP) in /xx/xx/xx/htdocs/includes/classes/seo.class.php on line 775 My "dirty" fix to keep my site up and running was to take the defines from the old configure file and add them in includes/languages/english.php define('HTTPS_SERVER', 'https://www.mydomain.com'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'www.mydomain.com'); define('HTTPS_COOKIE_DOMAIN', 'www.mydomain.com'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); Know this is not good but it does work for the moment until you can help as I am no expert! Thanks so much.
  5. 1 point

    Slim Checkout for BS

    @cupidare, Here the updated version for Phoenix Tested with Phoenix Slim_Checkout_1.2.zip Please try and report back. I'll then upload it to the marketplace.
  6. 1 point
    The file absolutely works! Thanks so much. You were right Matt that I will need to do some configuring to get Phoenix to switch to the override/email.php file. I am here to learn so I will give it a try. Also for anyone else wanting to do this, in the My Store configuration you need to change the "email from" setting "your name" <info@ yourstore> to info@yourstore. The reply-to's have to match.
  7. 1 point
    I'm not sure why you would have needed to modify general.php with that class. Presumably application_top.php was to load the class but Phoenix should do that automatically. <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2020 osCommerce Released under the GNU General Public License email is a class to assist with PHPmailer sendmail, SMTP and gmail compatibility */ require_once DIR_FS_CATALOG . 'includes/apps/PHPMailer/PHPMailerAutoload.php'; class email { private $lf, $mailer; private $debug = 0; private $debug_output = 'error_log'; const LINEFEEDS = ["\r\n", "\n", "\r"]; public function __construct($headers = '') { $this->mailer = new PHPMailer(); $this->mailer->XMailer = 'osCommerce ' . tep_get_version(); $this->mailer->SMTPDebug = $this->debug; $this->mailer->Debugoutput = $this->debug_output; $this->mailer->CharSet = CHARSET; $this->mailer->WordWrap = 998; if (EMAIL_TRANSPORT == 'smtp' || EMAIL_TRANSPORT == 'gmail') { $this->mailer->IsSMTP(); $this->mailer->Port = EMAIL_SMTP_PORT; if (EMAIL_SMTP_SECURE !== 'no') { $this->mailer->SMTPSecure = EMAIL_SMTP_SECURE; } $this->mailer->Host = EMAIL_SMTP_HOSTS; $this->mailer->SMTPAuth = EMAIL_SMTP_AUTHENTICATION; $this->mailer->Username = EMAIL_SMTP_USER; $this->mailer->Password = EMAIL_SMTP_PASSWORD; } else { $this->mailer->isSendmail(); } if (EMAIL_LINEFEED == 'CRLF') { $this->lf = "\r\n"; } else { $this->lf = "\n"; } } public function add_text($text = '') { $this->mailer->IsHTML(false); $this->mailer->Body = str_replace(static::LINEFEEDS, $this->lf, $text); } public function add_html($html, $text = NULL, $images_dir = NULL) { $this->mailer->IsHTML(true); $this->mailer->Body = str_replace(static::LINEFEEDS, '<br />', $html); $this->mailer->AltBody = str_replace(static::LINEFEEDS, $this->lf, $text); if (isset($images_dir)) { $this->mailer->Body = $this->mailer->msgHTML($this->mailer->Body, $images_dir); } } public function add_message($email_text) { // Build the text version $text = strip_tags($email_text); if (EMAIL_USE_HTML == 'true') { $this->add_html($email_text, $text); } else { $this->add_text($text); } } function add_attachment($path, $name = '', $encoding = 'base64', $type = '', $disposition = 'attachment') { $this->mailer->AddAttachment($path, $name, $encoding, $type, $disposition); } public function build_message() { // do nothing; needed for compatibility } public function send($to_name, $to_addr, $from_name, $from_addr, $subject = '') { // No need to check for "\r\n" separately as will match the other two foreach (["\n", "\r"] as $line_ending) { foreach ([$to_name, $to_addr, $subject, $from_name, $from_addr] as $header_value) { if (false !== strstr($header_value, $line_ending)) { return false; } } } $this->mailer->From = $from_addr; $this->mailer->FromName = $from_name; $this->mailer->AddAddress($to_addr, $to_name); if (defined('EMAIL_FROM')) { $this->mailer->From = EMAIL_FROM; $this->mailer->FromName = STORE_NAME; $this->mailer->AddReplyTo($from_addr, $from_name); } else { $this->mailer->From = $from_addr; $this->mailer->FromName = $from_name; } $this->mailer->Subject = $subject; $result = $this->mailer->Send(); $this->mailer->clearAddresses(); $this->mailer->clearAttachments(); return $result; } } Save this email.php file in a directory named includes/system/override (which you will probably have to create) and see if it starts working. Note that you may have to do some configuration somewhere. And of course you need to upload the PHPMailer files. I don't think that ext is the right place. I'd put them in includes/apps/ or similar. If you change that, change the require line. I replaced the EMAIL_SMTP_REPLYTO with the Phoenix equivalent along with other changes.