When the from address field is left blank in the configuration page, it is supposed to default to the site address (that is what it says under the field anyway). It doesn't though, and instead the from address is left blank, resulting in a whitescreen of death with 'Invalid address' printed on it. The mail does still get sent though.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | do_not_pass_empty_string_as_from2.patch | 1.11 KB | berdir |
| #1 | do_not_pass_empty_string_as_from.patch | 1023 bytes | berdir |
Comments
Comment #1
berdirConfirmed, please try the patch.
The problem is that drupal_mail() uses isset($form) but that is only FALSE if it is NULL, not if it's an empty string.
Comment #3
berdirBetter patch.
Comment #4
berdirCommited, thanks for reporting.
Comment #5
berdirCommited to 7.x too.