Forums / Bug Reports / [Done 1.3.5]EMAIL_SMTPAUTH_MAIL_SERVER_PORT - only exists in configuration table ?

[Done 1.3.5]EMAIL_SMTPAUTH_MAIL_SERVER_PORT - only exists in configuration table ?

Locked

Views: 1,831

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
14 Aug 2006, 4:43 AM
#1
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

[Done 1.3.5]EMAIL_SMTPAUTH_MAIL_SERVER_PORT - only exists in configuration table ?

I have discovered a weird problem a couple of mins ago.

Perhaps I missed a spot in the upgrade instructions ... if so, I apologize.

When I tried to search for: EMAIL_SMTPAUTH_MAIL_SERVER_PORT definition, it returns as '0'. I could only found it from my personal search software - which is only located under the configuration table but doesn't seem to be used from includes/functions/functions_email.php file.

It only states the server name, smtp login name, smtp password but not the port number (even if, I believe, is being requested from the admin when we switch the option to: 'smtpauth').

Have I spotted this wrong ? :blink:

14 Aug 2006, 4:47 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: [Done 1.3.5]EMAIL_SMTPAUTH_MAIL_SERVER_PORT - only exists in configuration table ?

I'm not sure I follow what the "problem" is.

That constant is only supposed to be defined in the configuration table.

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

14 Aug 2006, 4:53 AM
#3
drbyte avatar

drbyte

Sensei

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

Re: [Done 1.3.5]EMAIL_SMTPAUTH_MAIL_SERVER_PORT - only exists in configuration table ?

Hmmm ... I wasn't following your explanation well... perhaps it's a language thing.

Confirmed.

This will only affect things if you are using SMTP email and are not using the standard Port 25 for sending mail.... which would be a rare occasion unless running from behind a firewall at home etc.

functions_email.php
replacephp $mail->Host = EMAIL_SMTPAUTH_MAIL_SERVER; with```php
$mail->Host = EMAIL_SMTPAUTH_MAIL_SERVER;
if (EMAIL_SMTPAUTH_MAIL_PORT != '25' & EMAIL_SMTPAUTH_MAIL_PORT != '') $mail->Port = EMAIL_SMTPAUTH_MAIL_PORT;

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