Forums / Bug Reports / [Not a ZC bug] "Contact Us" PHP mail error

[Not a ZC bug] "Contact Us" PHP mail error

Locked

Views: 2,060

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
13 Dec 2008, 2:48 AM
#1
anna718 avatar

anna718

New Zenner

Join Date:
Dec 2008
Location:
Tasmania. Australia
Posts:
35
Plugin Contributions:
0

[Not a ZC bug] "Contact Us" PHP mail error

Zen version is 1.3.8a
PHP version is 5.2.42
Email Transportation Method set to PHP

Order confirmation, welcome email, etc, all work fine, so there is nothing wrong with the selected transportation method in my setup.

When I try to use this transport method with the Contact Us form, however I get an Could not instantiate mail function error. It ONLY occurs in the contact form.

I note that this has been discussed elsewhere as an issue, but always assumed to be an issue with the host server. It cannot possibly be an issue with my server if all other mail sends without problem using PHP mail function.

I was able to work around it by changing to transport via smtpauth, but this does not change the issue with the contact form, which should also work perfectly well under PHP mail function, given that all other mail functions work.

14 Dec 2008, 9:51 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: [Not a ZC bug] "Contact Us" PHP mail error

Anna718:

I was able to work around it by changing to transport via smtpauth, but this does not change the issue with the contact form, which should also work perfectly well under PHP mail function, given that all other mail functions work.

The reason it works via smtpauth is that your smtpauth mailserver has you fully authenticated when you use that method, whereas the "PHP" method does not authenticate you. And, since your contact-us message is set up to spoof the sender's name, using the PHP method on your server is causing your messages to be rejected before they're even sent.

Thus, it's not a bug in Zen Cart. Instead, it's a security limitation of your hosting company's setup and/or your choice of email addresses.

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