嗨,需要一些邮寄方面的帮助。我正在尝试将此变量的内容插入到字符串中以作为电子邮件发送,还需要添加换行符。还需要将 From header 更改为“Procity”和 procitystaff@gmail.com
$claim_msg='Hey $claim_username, \n The donator has cancelled your claimed item, but you got your ' $email_to=$claim_email;
$template=$claim_msg;
$subject= "Claimed item canceled";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1 '.' \r\n';
$headers .= 'From: procitystaff@gmail.com'.' \r\n';
$from='procitystaff@gmail.com';
mail($email_to,$subject,$template,$headers);