不使用PHP发送邮件链接

时间:2017-09-13 08:11:27

标签: php

我想向新用户发送确认链接。我用这段代码发送邮件(确认链接)

            $to = $email;
            $subject = "Verify Your Account";               


            $actual_link = "http://myorchidkart.com/simplepay/verify_email.php?hash=" . $hash;

            $message = "<a href ='".$actual_link."'>" . $actual_link . "</a>";



            $headers  = "MIME-Version: 1.0" . "\r\n";
            $headers .= "Content-type: text/html; charset=iso-8859-1" . "\r\n";
            $headers .= "From: ". $from. "\r\n";
            $headers .= "Reply-To: ". $from. "\r\n";                

            mail($to, $subject, $message, $headers);

但没有确认链接,只有文字但没有链接 我怎么能解决这个问题??

邮件看起来像这样

enter image description here

0 个答案:

没有答案