Menu

#58 Silent failure if email invalid.

Submitted Fault
open
nobody
General (7)
5
2003-04-30
2003-04-30
Mark Remde
No

I found that if an invalid email address was entered
on the form, neither the sender email nor the
mailto email would send. Debugging found that the
script stopped at the following command:
$senderMsg->send()
around line 1228.

As a temporary measure I have enclosed this within
an eval() statement to allow the script to continue,
and send the "mailto" email.

I know you can validate this field, but I do not
necessarily want to fail the form.
I would like to see the $email form field validated,
and if invalid, simply ignore the sender email, or
alternatively send to a given default address.

The fakemail "@localhost" also fails on my server
(Sendmail 8.10.2/8.10.2)

Comments please?

Discussion


Log in to post a comment.

MongoDB Logo MongoDB