Sending email templates with HTML content by using HttpsURLConnection

Viewed 4

Replace the special characters in the template to fix issues

 templateContent = templateContent.replace("\n", "");  
    templateContent = templateContent.replace("\r", "");
    templateContent = templateContent.replace("\t", "");
    templateContent = templateContent.replace("\"", "\\\"");
0 Answers
Related