Add a carriage return in HTML

KariB

New Member
I need to send an email every day (in html) with the people registered in my page. Im using Grails plugin "mail" to send the email. it is sent without problems. But, the mail is sent without carriage return, and obviously it results in an almost unreadable mail. This is the code:\[code\]ArrayList users=User.findAllByRegistradaBetween(date-1,date)String results="\r\n"for (int i=0;i<users.size();i++){results = results+users.mail+"\r\n"mailService.sendMail { to '[email protected]' from "[email protected]" subject "A subject" html '<label>Users registered today: '+results+'</label></br>' }\[/code\]I tried with \r\n but doesn't works, as I suspected, in HTML. How can I get something like that?:[email protected]@[email protected] you!
 
Back
Top