3 回答
TA贡献1794条经验 获得超8个赞
你可以这样使用:
$to = "jatinjhambji@gmail.com";
$subject = "Confirmation mail";
$message = " This message is to confirm your account has been created. "
$headers = "From: youremail@example.com" . "\r\n" .
"CC: somebodyelse@example.com";
if(mail($to,$subject,$message,$headers)){
header('Location: /yourredirectionpage.php');
}
TA贡献1821条经验 获得超4个赞
请在下面的代码
if (mysqli_query($con,$newUser))
{
sentBookingMail($mailData);
header('Location: next_page.php');
echo "<script type='text/javascript'> alert('Your Booking has been sent,you will receive a confirmation email shortly')</script>";
} else {
echo "<script type='text/javascript'> alert('Error adding user in database')</script>";
}
function sentBookingMail($mailData){
// your mail code will be here
}
- 3 回答
- 0 关注
- 189 浏览
添加回答
举报