Ookma-Kyi
08/24/2022, 9:03 PMAdam Cameron
Ookma-Kyi
08/24/2022, 9:13 PMvar protocol = #getPageContext().getRequest().getScheme()#;
var domain = #cgi.server_name#;
var path = #cgi.path_info#;
mailService = new mail(
to = rc.email,
from = "admin@#domain#",
subject = "Password Reset Instructions",
body = """
A request has been sent to reset your password.\n
Click on the link below to reset your password.\n
\n
#protocol#://#domain#/resetpassword/#token#
"""
);
mailService.send();
Dave Merrill
08/24/2022, 9:16 PMOokma-Kyi
08/24/2022, 9:17 PMhttps://files.slack.com/files-pri/T06T9JEE9-F03UURUKG3Y/email_verify_success.pngā¾
Adam Cameron
I can move it if you want.It'd be more likely to get the more eyes on it if you post things in the correct channel.
Adam Cameron
<cfmail>
tag as a baseline/control experiment?Adam Cameron
Ookma-Kyi
08/24/2022, 9:19 PMDave Merrill
08/24/2022, 9:19 PMvar domain = #cgi.server_name#;
Yes here:
from = "admin@#domain#"
Adam Cameron
Ookma-Kyi
08/24/2022, 9:20 PMAdam Cameron
Adam Cameron
Ookma-Kyi
08/24/2022, 9:21 PMAdam Cameron
Ookma-Kyi
08/24/2022, 9:24 PMAdam Cameron
<cfmail>
tag and see what you get.Adam Cameron
#
was just "better coding practices" nothing to do with yer issue.Adam Cameron
richard.herbert
08/24/2022, 9:33 PMOokma-Kyi
08/24/2022, 9:39 PMOokma-Kyi
08/24/2022, 9:40 PM"
on the top and bottom and the \n
Adam Cameron
Adam Cameron
https://i2.paste.pics/ad9735d98631584664505012f26590fe.pngā¾
Ookma-Kyi
08/24/2022, 9:42 PM"""
means long block of string? the '\n
i didn't know if it auto returns stringsAdam Cameron
\n
.Adam Cameron
Adam Cameron
Ookma-Kyi
08/24/2022, 9:45 PMmulti
lines
here
Adam Cameron
richard.herbert
08/24/2022, 9:49 PMAdam Cameron
<pre>
tags: https://trycf.com/gist/41ed805044512364e6006331d99b5a90/lucee5?theme=monokai
In other situations you might need to put \n
(or \r\n
) depending on what's needed.
Or maybe - like in markdown - implicit line breaks are respected. So using that example string I used in the first gist, if used as markdown, would render the line breaks just fine.Dave Merrill
08/25/2022, 12:59 PM