Reputation: 31709
I have this code/text below is sent when a user reset the password of an account:
E-mail: <?php echo $sfGuardUser->getEmailAddress(); ?>
Contraseña: <?php echo $password; ?>
The problem:
in the received email this is showed:
http://img689.imageshack.us/img689/357/48099429.jpg
I have tried this:
E-mail: <?php echo $sfGuardUser->getEmailAddress(); ?><br />
Contraseña: <?php echo $password; ?>
But this below is showed in the received e-mail:
http://img820.imageshack.us/img820/1658/93491334.jpg
Any help?
Regards
Javi
Upvotes: 1
Views: 271
Reputation: 212412
EMail is text, not HTML
E-mail: <?php echo $sfGuardUser->getEmailAddress().PHP_EOL; ?>
Contraseña: <?php echo $password; ?>
or
E-mail: <?php echo $sfGuardUser->getEmailAddress()."\r\n"; ?>
Contraseña: <?php echo $password; ?>
Upvotes: 2