Jump to content

bodhizatfa

Members
  • Content count

    22
  • Joined

  • Last visited

Everything posted by bodhizatfa

  1. bodhizatfa

    SMTP with authentication on Phoenix 1.0.5.0

    Matt's absolutely right. Matt's email.php is 100%. I installed PHPMailer in /includes/apps/ Matt's also right that I temporarily patched my store so I could start selling stuff, while I figure out how to override email.php while maintaining PHPMailer functions. I'm not a coder, just a store owner. PHPmailer is the extra plot twist I am very comfortable with databases. I modified it there. Once again Matt is right. He provided a working code for email.php and I greatly appreciate it. I too believe that the Phoenix core needs to remain free of patches. I am trying to with my limited skills in my free time, to come up with an acceptable solution for SMTP with PHPmailer that will first need to be approved by Burt and Matt. This may take me a while because I am still learning about Phoenix's functionality. If you need to get it done correctly and rapidly, I would follow Matts suggestion and hire one of the Phoenix certified developers to get it done for you. I agree 100% with this as well. It would make life so much easier.
  2. 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 1.0.5.0? 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
  3. bodhizatfa

    SMTP with authentication on Phoenix 1.0.5.0

    Mike what version are you running? I'm now on 1.0.7.5. been a while since I started this thread.
  4. bodhizatfa

    SMTP with authentication on Phoenix 1.0.5.0

    It does require a change in the core to get it working as it stands right now.
  5. bodhizatfa

    SMTP with authentication on Phoenix 1.0.5.0

    @ejsolutions I am a big fan and a supporter of Phoenix and I am also one of the few 0.01% of users that are not on a Linux server at the moment. SMTP can be implemented in the latest Phoenix without sendmail. There are indeed a couple of us in the community who have needed to implement it because of the limitations imposed upon us by our hosting environments like those you mention. I received some great advice and pointers from the developers, which in turn helped me do what I had to do, without the need to swap out my host. I'm by no means a coder, but I got it done. This is only one reason why I suggest you become a Phoenix supporter as I did. Everyone involved in developing Phoenix are donating their time to keep this project going. Help keep Phoenix flying!
  6. bodhizatfa

    SMTP with authentication on Phoenix 1.0.5.0

    Thanks, Malcolm, I was looking at this too actually. Thanks for the heads-up! I give it a try too! Matt's code works like a charm as well!
  7. bodhizatfa

    SMTP with authentication on Phoenix 1.0.5.0

    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.
  8. bodhizatfa

    SMTP with authentication on Phoenix 1.0.5.0

    Thanks so much Matt! It steers me in the right direction. I will do what you said and let you know how it works out. Regards
  9. bodhizatfa

    SMTP with authentication on Phoenix 1.0.5.0

    I hear you loud and clear.
  10. bodhizatfa

    SMTP with authentication on Phoenix 1.0.5.0

    No spam problems because my host uses smtp authentication and has for many years. Like many hosts, the like to point and say it's a programming problem, when in fact it's not. I am going to have to change hosts if they can't fix their side of the server.
  11. bodhizatfa

    SMTP with authentication on Phoenix 1.0.5.0

    I sincerely apologize for the poor choice of words Matt. The topic I posted here clearly says SMTP Authentication on Phoenix 1.0.5.0 I don't know how clearer I could be. I am a supporter of Phoenix, and I believe in it 100%. Yes, I have been working with my host trying to get them to set things configured correctly, and I quite frankly am contemplating switching hosts ASAP. Matt, I am a complete newbie, but If I look at the changes that have been made going forward in phoenix on github I see that we have eliminated email.php in both the admin/includes/classes as well as in catalog/includes/classes. Once upon a time, both those files, as well as application_top, and general.php, had to be modified to enable the end-user to have authenticated SMTP, using PhpMailer or the like. Here is an example of the email.php I had used in the past on 231BS which worked like a charm using phpmailer. No you're not lazy, you're busy. I get it. <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2014 osCommerce Released under the GNU General Public License email is a class to assist with PHPmailer sendmail, SMTP and gmail compatibility */ require_once '/ext/modules/PHPMailer/PHPMailerAutoload.php'; $phpMail = new PHPMailer(); class email { var $html; var $text; var $html_text; var $lf; var $debug = 0; var $debug_output = 'error_log'; function email($headers = '') { global $phpMail; $phpMail->XMailer = 'osCommerce ' . tep_get_version(); $phpMail->SMTPDebug = $this->debug; $phpMail->Debugoutput = $this->debug_output; $phpMail->CharSet = CHARSET; $phpMail->WordWrap = 998; if (EMAIL_TRANSPORT == 'smtp' || EMAIL_TRANSPORT == 'gmail') { $phpMail->IsSMTP(); $phpMail->Port = EMAIL_SMTP_PORT; if (EMAIL_SMTP_SECURE !== 'no') { $phpMail->SMTPSecure = EMAIL_SMTP_SECURE; } $phpMail->Host = EMAIL_SMTP_HOSTS; $phpMail->SMTPAuth = EMAIL_SMTP_AUTHENTICATION; $phpMail->Username = EMAIL_SMTP_USER; $phpMail->Password = EMAIL_SMTP_PASSWORD; } else { $phpMail->isSendmail(); } if (EMAIL_LINEFEED == 'CRLF') { $this->lf = "\r\n"; } else { $this->lf = "\n"; } } function add_text($text = '') { global $phpMail; $phpMail->IsHTML(false); $this->text = tep_convert_linefeeds(array("\r\n", "\n", "\r"), $this->lf, $text); } function add_html($html, $text = NULL, $images_dir = NULL) { global $phpMail; $phpMail->IsHTML(true); $this->html = tep_convert_linefeeds(array("\r\n", "\n", "\r"), '<br />', $html); $this->html_text = tep_convert_linefeeds(array("\r\n", "\n", "\r"), $this->lf, $text); if (isset($images_dir)) $this->html = $phpMail->msgHTML($this->html, $images_dir); } function add_attachment($path, $name = '', $encoding = 'base64', $type = '', $disposition = 'attachment') { global $phpMail; $phpMail->AddAttachment($path, $name, $encoding, $type, $disposition); } function build_message() { //out of work function } function send($to_name, $to_addr, $from_name, $from_addr, $subject = '', $reply_to = true) { global $phpMail; if ((strstr($to_name, "\n") != false) || (strstr($to_name, "\r") != false)) { return false; } if ((strstr($to_addr, "\n") != false) || (strstr($to_addr, "\r") != false)) { return false; } if ((strstr($subject, "\n") != false) || (strstr($subject, "\r") != false)) { return false; } if ((strstr($from_name, "\n") != false) || (strstr($from_name, "\r") != false)) { return false; } if ((strstr($from_addr, "\n") != false) || (strstr($from_addr, "\r") != false)) { return false; } $phpMail->From = $from_addr; $phpMail->FromName = $from_name; $phpMail->AddAddress($to_addr, $to_name); if ($reply_to) { $phpMail->AddReplyTo(EMAIL_SMTP_REPLYTO, STORE_NAME); } else { $phpMail->AddReplyTo($from_addr, $from_name); } $phpMail->Subject = $subject; if (!empty($this->html)) { $phpMail->Body = $this->html; $phpMail->AltBody = $this->html_text; } else { $phpMail->Body = $this->text; } $error = false; if (!$phpMail->Send()) { $error = true; } $phpMail->clearAddresses(); $phpMail->clearAttachments(); if ($error == true) { return false; } return true; } } ?>
  12. bodhizatfa

    SMTP with authentication on Phoenix 1.0.5.0

    Hi Gustavo, Thanks for responding. Yes I've looked through the topic, and read through pretty much every other post to see if I could find the answers. I still haven't found the answer. My amateur understanding of Phoenix is that the core will remain intact and there will be modules developed to expand Phoenix's functionality, kind of like WordPress. Wordpress had the same issues and someone developed a plugin to address SMTP functions. I'm exploring Phoenix 1.0.5.0 right now. Even as an amateur, if I look at the updates leading up to 1.0.6.0, all of the previous SMTP patches simply won't work because the file structures have changed significantly. The team is focusing on streamlining the core from what I can see. SMTP functionality and authentication are both realities that everyone lives with. I am sure someone will develop an add-on solution. I would develop one, but I am not even close to being a coder.
  13. I personally have a ton of gratitude for the work and the teaching the coders have done in this forum for years. I am not a coder, but I have always patched my store myself using the information available on the forums. I've even learned to figure a lot of the stuff out on my own too. I just took a leap of faith and jumped from 234bs to Phoenix 1.0.5.0. because I like the direction that Phoenix is taking and I needed to move forward. I am getting the Phoenix core code for free. A lot of people have worked hard on it and it's still free. Part of the deal is that I have to learn new stuff. Yes, folks, it's still free thanks to the coders. Thanks, to everyone involved in the project!
×