0
我從一個PHP表單發送電子郵件,它傳遞的信息很好,但是因爲我添加了郵件優先級,表單將郵件傳遞到同一個電子郵件地址。從PHP發送電子郵件
例子:
$email = $row['SUBSCRIPTIONS_EMAIL_FROM']; --> [email protected]
$emailto = $row['SUBSCRIPTIONS_EMAIL_TO']; --> [email protected]
$subject = $row['SUBSCRIPTIONS_1ST_NOTICE_SUBJECT'];
$headers = "From: $email";
$send = mail($emailto, $subject, $body, $headers);
它提供了電子郵件,並從細從SQL
給定的電子郵件地址,但自從我加入了消息優先級附加頭:
$email = $row['SUBSCRIPTIONS_EMAIL_FROM']; --> [email protected]
$emailto = $row['SUBSCRIPTIONS_EMAIL_TO']; --> [email protected]
$subject = $row['SUBSCRIPTIONS_1ST_NOTICE_SUBJECT'];
$headers = "From: $email";
$headers = "X-Priority: 1 (Highest)\n";
$headers = "X-MSMail-Priority: High\n";
$headers = "Importance: High\n";
$send = mail($emailto, $subject, $body, $headers);
它將電子郵件發送到$emailto:
電子郵件地址。
任何人都可以幫助我嗎?
在此先感謝。
高興您收到的郵件...所以問題是什麼? –
我怎樣才能讓它顯示正確的電子郵件地址 – user3303594