Thanks for sharing NetNoise. Brilliant findings!
Do you have a fix ready for the ContactForm?
-
☆ A M B ☆
- 24,524 Posts
Doesn’t work at all. Replaced stock 0.9.1 version with this, and got a general failure "Sorry...Try again later" message. Replace it with the original and it works fine.
Could you please send me your php_errorlog-message or something else that helps me to catch the error?
(I tested it again and again and it works without any errors on my MODx-Standard-Install.)
-
☆ A M B ☆
- 24,524 Posts
I’ll give it another try and see what happens.
-
☆ A M B ☆
- 24,524 Posts
I just dropped it in the snippet code as it came from the txt file. It gives me a "Sorry, there was an error! Please try again later." message. I don’t see any other error messages.
Ok, I put an echo statement to echo the variables just before calling the mail() function. With the new one, the $to variable is still the unparsed [(emailsender)] tag, while in the old one it’s parsed to the actual email address.
-
☆ A M B ☆
- 24,524 Posts
I set the sendTo argument in the snippet call using [(emailsender)] and it works fine. For some reason it’s not parsing the tag when used as the default.
-
☆ A M B ☆
- 24,524 Posts
I also jazzed it up a bit by adding From: and X-Mailer: to the $headers field, taken directly from the php manual.