Add new line with '\n' in email script is not working

JJG
Kilo Guru

Hello,

I have an email script that looks up a user's info and then adds it to the end of an email notification. The lines of info should be separated by a new line, however, when I try to do this with \n it is not working. It just adds a space between the info. How can I add a new line?

email script:

var recruiter = current.name_of_recruiter;
var recruiterEmail = current.recruiter_email;
var searchRecruiter = new GlideRecord('sys_user');
searchRecruiter.addQuery('name', recruiter);
searchRecruiter.addQuery('email', recruiterEmail);
searchRecruiter.query();
if (searchRecruiter.next()) {
var recruiterPhone = searchRecruiter.mobile_phone;
}
template.print(recruiter);
template.print('\n');
template.print(recruiterEmail);
template.print('\n');
template.print(recruiterPhone);

1 ACCEPTED SOLUTION
1 REPLY 1

Swadesh Saraf2
Kilo Guru

Use <br>