| Post |
|
Guest
| Chris L 2:28 am May 9, 2009
| |
|
|
I have a form that works fine when the admin (not the from) address is set to user@domain.com but fails if the admin address is changed to user+x@domain.com even though that address is valid and works from mail clients, etc. What could be causing this?
|
|
|
Admin
| Oliver Munich, Germany posts 6237 8:29 am May 9, 2009
| |
|
|
you may want to ask your provider this.
|
|
|
|
|
Guest
| Chris L 2:28 am May 11, 2009
| |
|
|
It's not a problem with my provider– the mail works fine, including from my own PHP scripts and from your script… there's something specific to YOUR plugin that is breaking this by not sending email if the email has a perfectly valid construction with a + in it. IF the only thing I change is the email address in the cforms settings and then it stops working while working everywhere else, how is that my provider's fault?
Did you even try this to confirm the problem? I've duplicated the problem on three different servers. Coincidence?
|
|
|
Guest
| Chris L 3:01 am May 11, 2009
| |
|
|
If it helps, I tested this by running the simple PHP script on two of the servers (can't get to the third from here):
mail('x@address'', 'test from php', 'msg');
and
mail('x+y@address'', 'test from php', 'msg');
and both work fine when I access them via browser. Whatever is happening is specific to cforms routines. If I have time I'll try to figure out where I can dump the mail command to see what is happening in cforms unless there is some debug routine that will do that for me.
|
|
|
Guest
| Chris L 3:38 am May 11, 2009
| |
|
|
OK, I was able to verify that this is a cforms problem. You can see it for yourself by putting an offending address (x+y@foo.com) along with the (x@foo.com) and viewing the headers in the email that will arrive at the second address.
I also dumped a copy of the mail to a text file.
What's happening is that cforms is stripping the x+ part from the address, so mail to:
john+foo@bar.com or John Boy <john+foo@bar.com>
is being stripped so that the resulting header becomes:
foo@bar.com or John Boy <foo@bar.com>
which is undeliverable of course.
|
|
|
Admin
| Oliver Munich, Germany posts 6237 7:12 am May 11, 2009
| |
|
|
your example of user an user+x was a bit misleading and looked like a generic example of 'email1' works while 'email2' doesn't.
anyway, while the '+' indeed is not supported by cforms 10.5.1, I'll release a patch soon that will change this.
|
|
|
|
|
Guest
| Chris L 9:55 am May 11, 2009
| |
|
|
I'm unsure how I could literally be more precise than "user" and "user+x" ! The +form of an email address is part of the RFC specification.
But I appreciate the patch in advance.
|
|