Hi Experts,
I am using Command_SYS.Mail() function in Execute Online SQL to send a notification mail via custom event to users.
How can I add a new line in my variable (sending text) without using ‘HTML’ CONTENT TYPE ?
Thanks a lot for your help
Hi Experts,
I am using Command_SYS.Mail() function in Execute Online SQL to send a notification mail via custom event to users.
How can I add a new line in my variable (sending text) without using ‘HTML’ CONTENT TYPE ?
Thanks a lot for your help
Best answer by Charith Epitawatta
Hi
If the content type is text/plain in Mail Sender configuration, then the linefeed character is chr(13). Oracle interprets this into ‘\n’ new line character. You can structure your email message as below:
Eg:
BEGIN
command_sys.mail('','example@email.com','Line1'||chr(13)||'Line2');
END;
If the content type is text/html, then you can use the <br> HTML tag.
Eg:
BEGIN
command_sys.mail('','example@email.com','Line1<br>Line2');
END;
Hope this helps!
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.