Zen Cart Logo
Forums / General Questions / SMTPAUTH Using Submission Port 587 With No SSL

SMTPAUTH Using Submission Port 587 With No SSL

Locked

Views: 1,609

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
20 Aug 2010, 4:33 PM
#1
andy337083 avatar

andy337083

New Zenner

Join Date:
Aug 2010
Posts:
2
Plugin Contributions:
0

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.

:clap:

20 Aug 2010, 5:27 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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: 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

<?php define ('SMTPAUTH_EMAIL_PROTOCOL', ''); ```
21 Aug 2010, 3:40 PM
#3
andy337083 avatar

andy337083

New Zenner

Join Date:
Aug 2010
Posts:
2
Plugin Contributions:
0

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.

:smile: