Search code examples
phphtml-emailphpmailer

Sending links via email


I'm trying to send a website link via email. The classic

<a href="website.com" target="_blank">website</a>

The problem is when I receive the email and try to open it. It doesn't want to redirect to the website. I'm not sure what I am doing wrong, can someone help?

I'm not sure if this will help but I'm using PHPMailer with the msgHTML method, which seems to be working fine.


Solution

  • Try fully qualifying the URL, I'm not sure the email client will be able to resolve a relative path.

    http://website.com