Problem Scenario:
Constructing a PHP email enquiry form. User can post their names and reply email address in HTML form. Feeding $_POST[sender_name] <$_POST[sender_email]> as the $from field in PEAR mail, an error returned and the email cannot be sent.
Such problem does not occur if feeding static string as the $from field.
Solution:
This is not a problem at all. PEAR mail is deliberating blocking this to avoid user feeding in cc and bcc information in the sender field, causing injection attacks and spamming.
0 Comments:
Post a Comment
<< Home