Phpmailer sends HTML email hyperlink click invalid solution

Source: Internet
Author: User
Tags formmail
Phpmailer sends HTML mail hyperlink click invalid use phpmailer to send HTML mail, & lt ;? Phpinclude_once (& quot; class. phpmailer. php & quot;); $ formmail = & quot; 381266902 phpmailer HTML email hyperlink click is invalid
Use phpmailer to send HTML emails ,,

Include_once ("class. phpmailer. php ");;
$ Formmail = "381266902@qq.com ";
$ Subject = "experiment ";
$ Smtp = "smtp.126.com ";
$ Username = "XXXXXXXX@126.com ";
$ Password = "**********";


$ Mail = new PHPMailer ();
$ Mail-> SMTPAuth = true;
$ Mail-> Host = $ smtp;
$ Mail-> IsSMTP ();
$ Mail-> SMTPAuth = true;
$ Mail-> Username = $ username;
$ Mail-> Password = $ password;
$ Mail-> From = "sou_ba@126.com ";
$ Mail-> FromName = "Souba activation ";
$ Mail-> Sender = "sou_ba@126.com ";
$ Mail-> Subject = $ subject;
$ Mail-> IsHTML (true );
$ Mail-> Body = "google ";

$ Mail-> AddAddress ($ formmail );
If (! $ Mail-> Send ())
{
Echo "failed to send ";
}
Else
{
Echo "sent successfully ";
}
?>


Successfully sent ,,

However, when you enter the email address to open the email, clicking the hyperlink is invalid ,,,


Could you help me solve this problem? thank you.

------ Solution --------------------
Add HTTP: // to the address ://

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.