I have the POST going to urldotcom/controller/action
The code snippet is:
- Code: Select all
if (!empty($_POST)) {
$recipient = "me@somedomain";
$forsubject = "Post Checker";
$mailheader = "From: me@someotherdomain \r\nReply-To: me@someotherdomain \r\nX-Mailer: PHP/".phpversion();
$formcontent = file_get_contents("php://input");
mail($recipient, $forsubject, $formcontent, $mailheader);
}
- Works in vanilla script outside ZF structure
- Doesn't work in controller or view.
My goal is to handle the data in the POST, but I after debugging a little while I found out it's just not being reached period.
Any help would be highly appreciated!

