3 回答

TA貢獻(xiàn)1794條經(jīng)驗(yàn) 獲得超8個(gè)贊
你可以這樣使用:
$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貢獻(xiàn)1821條經(jīng)驗(yàn) 獲得超5個(gè)贊
請(qǐng)?jiān)谙旅娴拇a
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 關(guān)注
- 210 瀏覽
添加回答
舉報(bào)