CFmail extra character in subject line
We are running CF2021 2021,0,04,330004 on Centos 7.9.I jsut started noticing extra character in the subject line. I'm not sure where its coming from, I tried to use all combinations of cfmail - script and tag, with subject being a variable and hard coded string. I added the utf-8 to the cfmail without any change.
cfmail( to = "me@example.com",
from = "them@example.com",
subject = "Example email" )
{
WriteOutput("test")
}
savecontent variable="local.mailBody" {
writeDump(now());
};
variables._mailto = "me@example.com";
variables._mailfrom = "them@example.com";
variables._mailsubj = "Example Email";
local.mailService = new mail(
to = variables._mailto,
from = variables._mailfrom,
//subject = variables._mailsubj,
subject = "Example Email",
body = local.mailBody,
type = 'html'
);
local.mailService.send();
mailerService = new mail();
/* set mail attributes using implicit setters provided */
mailerService.setTo("me@example.com");
mailerService.setFrom("them@example.com");
mailerService.setSubject("Example email");
mailerService.setType("html");
savecontent variable="mailBody"{
WriteOutput("TEST");
}
mailerService.send(body=mailBody);
I get the email, but this is the subject:
[]Example Email
I inserted the variable in the body and it comes without the character in the email.
Any thoughts?
thanks
Dejan
