[eluser]Unknown[/eluser]
Hello guys.
I have a problem with this behaviour. When sending a HTML email with a link inside it. If the link gets wrapped just before a dot in the domain name, that character is lost somewhere between CodeIgniter and the recipient mail client.
Yes, I'm not kidding.
Let's say we have an HTML body like this one:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
<head>
</head>
<body>
<h3>Código de Activación</h3>
<p>Para activar su cuenta, haga clic <a href="http://a.demo123.dnsalias.org/cliente/activar/4fa9fe5dcbe7eb0a79259a3858b937b9feaf446a/">aquí</a></p>
</body>
</html>
Email class will escape it creating one like this. Now, pay special attention to the line starting with ".org" because the mail reaching my mailbox lacks that character. Which forms an invalid URL: "a.demo123.
dnsaliasorg/client..."
[pre]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.=
w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
<head>
</head>
<body>
<h3>Código de Activación</h3>
<p>Para activar su cuenta, haga clic <a href="http://a.demo123.dnsalias=
.org/cliente/activar/4fa9fe5dcbe7eb0a79259a3858b937b9feaf446a/">aquí</a></=
p>
</body>
</html>
[/pre]
NOTE: The equal sign after href has a 3D before the double quote character. I had to remove it for proper posting.