Optimize Email Sending – ? showing as ?
-
With Optimize Email Sending set to on, the ? symbol is rendering as a ? symbol in the final email output. When Optimize Email Sending is off, the ? symbol sends as ?.
Section of code we use for this email:$subject = sprintf2(__("Page updated on Website?", "ourtheme"), [ "site_name" => get_bloginfo("name"), ]); $to = get_option("admin_email"); $headers = "From: " . get_bloginfo("name") . " <" . get_option("admin_email") . ">" . "\r\n"; wp_mail($to, $subject, $message, $headers); }
I tried adding
"Content-Type: text/html; charset=UTF-8" . "\r\n";
to the function, but it still didn’t work. Also hardcoding the ? symbol as its HTML entity equivalent ® also didn’t work.
It works fine with Optimize Email Sending set to off.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Optimize Email Sending – ? showing as ?’ is closed to new replies.