I’m having a weird issue with my HTML when sending from PHP. Hyperlinks are nos showed as they should. This is how it renders on my email client:
As you can see, there are 2 variables sending strings to the email body:
$texto_msg = 'HOLA <a href="http://vendoan.com">ANCHOR</a>';
$url_anuncio = 'Sal bien!!: <a href="'.get_permalink($post_tmp).'">Título: '.get_the_title($post_tmp).'</a>';
$e_subject = __('Alguien se ha interesado por tu anuncio en VendoAndroid','jigowatt');
// Advanced Configuration Option.
// You can change this if you feel that you need to.
// Developers, you may wish to add more fields to the form, in which case you must be sure to add them here.
$msg = __('¡Hola! Un usuario de VendoAndroid se ha interesado en tu anuncio:'). PHP_EOL . PHP_EOL;
//$msg .= __('<a href="'.get_permalink($post_tmp).'">Título: '.get_the_title($post_tmp).'</a>') . PHP_EOL . PHP_EOL;
$msg .= __($texto_msg) . PHP_EOL;
$msg .= __($url_anuncio) . PHP_EOL;
$msg .= implode(PHP_EOL, $comments) . PHP_EOL . PHP_EOL;
$msg .= "-------------------------------------------------------------------------------------------\r\n";
$msg .= 'Mensaje enviado desde <a href="http://vendoandroid.com" ><strong>VendoAndroid.com</strong></a>';
$msg = wordwrap( $msg, 70 );
I don’t understand why the first link works well and not the second one.
Any ideas?
Thank you
Update:
@Joachim Isaksson, this is the original source:
<p>¡Hola! Un usuario de VendoAndroid se ha interesado en tu anuncio:</p>
<p>TÃtulo: <strong>Puto Firefox jodio</strong><br />
<a href="http://vendoandroid.com/mis-anuncios/"><strong>área de<br />
usuario.</strong></a><br />
Puedes ver, editar o eliminar tu anuncios accediendo a tu <a<br />
href="http://vendoandroid.com/mis-anuncios/"><strong>área de<br />
usuario.</strong></a><br />
My bad. There’s some kind of problem with WordPress core.
http://codex.wordpress.org/Function_Reference/make_clickable
Trying to fix it now. Thank you