You need to sign in to do that
Don't have an account?

My email body is not switching to next line , Please suggest what is missing
String plainTextBody = 'The below Users are deactivated due 90 days of inactivity \n';
for(Integer n = userr.size();n>0;n--){
plainTextBody += i+')'+userr[n-1].name+'\n';
i++;
system.debug(+userr[n-1].name);
system.debug(userr[n-1].username);
}
message.setplainTextBody(plainTextBody);
for(Integer n = userr.size();n>0;n--){
plainTextBody += i+')'+userr[n-1].name+'\n';
i++;
system.debug(+userr[n-1].name);
system.debug(userr[n-1].username);
}
message.setplainTextBody(plainTextBody);
Is it entering the for loop?