我的PHP邮件()不起作用

时间:2017-07-05 01:40:21

标签: php email ubuntu server smtp

所以我在带有apache2的ubuntu笔记本电脑上使用了POSTFIX 和端口转发公共SMTP端口和PHP脚本工作,但现在它不是出于某种原因。我完美地工作然后突然非常奇怪

这是代码:

     $to = 'akaco@tutanota.com';
 $subject = 'Servers4Keys';
 $headers .= "MIME-Version: 1.0\r\n";
 $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

mail($to, $subject,
   "<html>
      <body>
        <h3 style='color: red;'>Customers Name: $name</h3></br>
        <h3>Ip: $ip</h3></br>
        <h3>Customers E-mail: $email</h3></br>
        <h3>Chosen Payment Plan: $plan</h3></br>
        <h3>Linux Distro: $distro</h3></br>
        <h3>Payment Type: $paymenttype</h3></br>
        <h3> Add 50 slots: $slots</h3></br>
        <h3>$servers</h3></br><br><br>
        <h3>$message</h3>
      </body>
   </html>",
   $headers);

0 个答案:

没有答案
相关问题