I have made a CMS system with a registration / login system. After a user registers to use it, an email is sent to the user with an activation code attached to the URL. The user is to click on this link in the activation email which will take them to an activation page on my sight. The email and activation code work fine.
However, the link in the email is not hot. So, when a person receives the email they have to copy the link and paste it into the URL window of their browser. Then, they can come to the activation page of my site.
Unfortunately, after spending days trying to figure out how to make this link hot, I still cannot do it. To be honest, I installed Swift Mailer because I thought it would allow me to make links that are hot. I am relatively new to PHP so I am probably missing something obvious. But, at least Swift Mailer does work for me.
Please advise on how to make the link being sent a hot link. Below is the code I used to send the link through Swift Mailer: (Note: The code works fine. It just does not make a hot link.
<?php
// Call the swift mail connections.
require_once "lib/Swift.php";
require_once "lib/Swift/Connection/SMTP.php";
// Connect to swiftmail.
$smtp =& new Swift_Connection_SMTP("blabla.com", 25);
$smtp->setUsername("bla@blabla.com");
$smtp->setpassword("XXXXXXX");
$swift =& new Swift($smtp);
// Create the message.
$message =& new Swift_Message("Report", "<html><body>Hi XXX,<br /> It has been a long time since we have talked. Please visit my site and let me know how you are doing.
<a href=\"www.blabla.com\">Come to my site.</a> <u>Cool</u></body></html>", "text/html");
if ($swift->send($message, "bla@blabla.com", "ttt@jomoeo.com"))
{
echo "Message sent";
}
else
{
echo "Message failed to send";
}
$swift->disconnect();
?>
Any advice is much appreciated !
Cheers,