Forums / Basic Configuration / email set-up for SMTP TLS

email set-up for SMTP TLS

Views: 2,742

Results 1 to 6 of 6
7 Jul 2012, 4:17 PM
#1
catach avatar

catach

Zen Follower

Join Date:
Oct 2005
Posts:
101
Plugin Contributions:
0

email set-up for SMTP TLS

Hello
I have tried to set up SMTP and SMTPAUTH with no luck. PHP and sendmail both work. I have been in contact with my host and they are saying that:

"Our mail servers require TLS encrpytion to send. If your Zen Cart doesn't have this option then there will need to be some alternate mail method or plugin used to send mail."

Anyone have any thoughts on how the SMTP or SMTPAUTH can be used? According to Zen-Cart recommended practice one or the other should be used for security.

Or is sendmail or PHP sufficient?

Thanks
John

8 Jul 2012, 1:14 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: email set-up for SMTP TLS

First set your Zen Cart to SMTPAUTH and provide it with your SMTP credentials.

Then to tell Zen Cart to use TLS, put the following content into a new PHP file and upload it to 2 locations:

  1. /includes/extra_datafiles/use_tls_for_smtp.php
  2. /your_renamed_admin_foldername/includes/extra_datafiles/use_tls_for_smtp.php
<?php
define('SMTPAUTH_EMAIL_PROTOCOL', 'tls');

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

8 Jul 2012, 2:14 PM
#3
catach avatar

catach

Zen Follower

Join Date:
Oct 2005
Posts:
101
Plugin Contributions:
0

Re: email set-up for SMTP TLS

Hi
Still trying to work with my host

I added:

<?php define('SMTPAUTH_EMAIL_PROTOCOL', 'tls'); ?>

with a closing ?>

but so far with or without the ?> I am not getting it to work. I will let you know if I hear more from my host

Thanks
John

10 Jul 2012, 3:01 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: email set-up for SMTP TLS

The closing ?> is not necessary. http://www.zen-cart.com/content.php?271-some-of-my-php-files-are-missing-the-at-the-end-of-the-file

More information about your host's prerequisites would be helpful.

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

10 Jul 2012, 10:40 PM
#5
catach avatar

catach

Zen Follower

Join Date:
Oct 2005
Posts:
101
Plugin Contributions:
0

Re: email set-up for SMTP TLS

Thanks
I did remember reading about the closing ?> now that you mention it.
The host is going to go into my zen cart at look at the settings

I'll post an update if it gets resolved
Thank you
John

11 Jul 2012, 11:50 PM
#6
catach avatar

catach

Zen Follower

Join Date:
Oct 2005
Posts:
101
Plugin Contributions:
0

Re: email set-up for SMTP TLS

Well, the host went in and configured it to use Qmail and it works fine now. Not sure why the SMTP or SMTPAUTH didn't work
John