<?php
echo $this->Form->end(__('Submit'))
$to = "someone@hotmail.com"; $subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "someonelse@example.com";
$headers = "From:" . $from;
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>
嘿,伙计们在这里需要帮助!我希望当有人按下提交按钮时,它会保存输入的详细信息并将其发送到电子邮件中