Zen Cart Logo
Forums / Bug Reports / [Done 2.0] "Contact Us" Email Dropdown List' when configured throws Error 500

[Done 2.0] "Contact Us" Email Dropdown List' when configured throws Error 500

Locked

Views: 2,666

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
18 Mar 2011, 1:17 AM
#1
astraios avatar

astraios

New Zenner

Join Date:
Mar 2011
Posts:
1
Plugin Contributions:
0

[Done 2.0] "Contact Us" Email Dropdown List' when configured throws Error 500

Zen Cart: v1.3.9f-h
Using Heart Internet, everything green during server check during installtion.

Configuring Contacts form email recipients via Admin >> Configuration >> "Contact Us" Email Dropdown List' caused various errors depending what mail transport is being used.

replicated on v1.3.9f-h, first discovered after making changed to cart, then replicated with clean installations.

After providing one or more email addresses for the Contacts Drop down box, and using Sendmail, I got Error 500 upon submitting the form. I tried using SMTP & SMTPAUTH options, this resulted in a server message saying: Email Error: SMTP Error: Could not connect to SMTP host

The relevant server log whilst using Sendmail & the Sendmail-f option said:

**Malformed header from script. Bad header="[email protected]: index.php, referer: http://domain.co.uk/index.php?main_page=contact_us**

Using the default PHP Option I get a slightly diffferent server error:
**Malformed header from script. Bad header=No recipient addresses found i: index.php, referer: http://domains.co.uk/index.php?main_page=contact_us**

As soon as I removed the email address' from the "Contact Us" Email Dropdown List' and saved it blank, PHP & Sendmail & SMTP all worked again.

18 Mar 2011, 1:31 AM
#2
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: [Done 2.0] "Contact Us" Email Dropdown List' when configured throws Error 500

Did you enter the email addresses as follows:

Name 1 email@address1, Name 2 email@address2

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

18 Mar 2011, 2:31 AM
#3
drbyte avatar

drbyte

Sensei

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

Re: [Done 2.0] "Contact Us" Email Dropdown List' when configured throws Error 500

astraios, you're the first person to report those symptoms, and the code driving that hasn't changed significantly in several years.
Thus, it would suggest that it's pointing to a configuration issue with your hosting company's server ... namely overly aggressive mod_security, or similar, rules imposed by the server administrator.

Somewhat-related article: https://www.zen-cart.com/tutorials/index.php?article=63

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

22 Mar 2011, 9:53 AM
#4
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: [Done 2.0] "Contact Us" Email Dropdown List' when configured throws Error 500

You must have both elements in Name 1 email@address1, Name 2 email@address2 and it MAY be necessary to have no spaces...

So, something like

Sales[email protected],Returns[email protected]

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !