Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2010
    Posts
    2
    Plugin Contributions
    0

    Default SMTPAUTH Using Submission Port 587 With No SSL

    After reviewing all FAQS, FORUMS, and web resources, I found
    the Function Module "functions_email.php" was the cause of my
    ZenCart Email errors. In functions_email.php at line 195 it is assumed that if any of the conditions are true that the Protocol = 'ssl". This is the line:

    if (EMAIL_SMTPAUTH_MAIL_SERVER_PORT == '465' || EMAIL_SMTPAUTH_MAIL_SERVER_PORT == '587' || EMAIL_SMTPAUTH_MAIL_SERVER == 'smtp.gmail.com') $mail->Protocol = 'ssl';

    This assumption is not fully correct, the email server that I use is
    VIA Omnis.com for which uses the submission port 587 but no SSL.

    After reviewing all the checks in FAQ Article Number 111, this lead me to a PHP problem processing messages from Zencart. I had to dismiss this idea, currently I have a fully functional Webmail Server Running with no problems "Horde Groupware Webmail Edition 1.2.6".

    So I had to search through the email code to find the fault, which
    now gives me a temporary fix and email works, all I did was delete "ssl" from the end of line 195 above which changed the end
    of the line to "Protocol = '';".

    A suggested solution to this problem would be to add another setting to Configuration Email Setting Such as:

    SMTPAUTH uses SSL True or False

    And Modifying functions_email.php line 195 to include this conditional test before assuming SSL.


  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: SMTPAUTH Using Submission Port 587 With No SSL

    Or, you could simply embrace the code from the next 2 lines, 196-197, which read:
    Code:
              if (defined('SMTPAUTH_EMAIL_PROTOCOL') && SMTPAUTH_EMAIL_PROTOCOL != 'none') {
                $mail->Protocol = SMTPAUTH_EMAIL_PROTOCOL;
    ... such that if you simply add this statement to your own custom settings script, say, /includes/extra_configures/my_email_needs.php, it will accomplish the same thing, without having to touch any core code:
    PHP Code:
    <?php
    define 
    ('SMTPAUTH_EMAIL_PROTOCOL''');
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Aug 2010
    Posts
    2
    Plugin Contributions
    0

    Default Re: SMTPAUTH Using Submission Port 587 With No SSL

    Thanks DrByte,

    The info in your reply is exactly what I could not find in the ZenCart book.


 

 

Similar Threads

  1. Can A Port Other Than 443 Be Used For SSL?
    By Quawk in forum General Questions
    Replies: 7
    Last Post: 17 Jul 2013, 10:35 PM
  2. v150 SMTPAUTH Problem - need to enable ssl to send email
    By SheilaDee in forum General Questions
    Replies: 6
    Last Post: 25 Aug 2012, 11:29 PM
  3. cc with smtpauth
    By pageblair in forum Basic Configuration
    Replies: 1
    Last Post: 11 Mar 2010, 05:09 PM
  4. Sending emails using SMTPAUTH problem... on my own IIS server
    By Alex Clarke in forum General Questions
    Replies: 3
    Last Post: 25 Mar 2009, 10:19 AM
  5. Is SSL smtpauth possible?
    By DogTags in forum General Questions
    Replies: 0
    Last Post: 23 Feb 2009, 03:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg