ユーザーがメールアカウントに入力して送信をクリックすると、メールがメールアカウントに送信されるフォームに取り組んでいます。
私はすべてうまくいきました。私のアカウントにメールが送信されないだけです。誰にもアイデアはありますか?省略した構成などはありますか?
これは私のコントローラからのサンプルです:
public function retrieveemailAction(){
$users = new Users();
$email = $_POST['email'];
$view = Zend_Registry::get('view');
if($users->checkEmail($_POST['email'])) {
// The Subject
$subject = "Email Test";
// The message
$message = "this is a test";
// Send email
// Returns TRUE if the mail was successfully accepted for delivery, FALSE otherwise.
// Use if command to display email message status
if(mail($email, $subject, $message, $headers)) {
$view->operation = 'true';
}
} else {
$view->operation = 'false';
}
$view->render('retrieve.tpl');
}