Diacritics/Special characters – Not sending emails
-
Hi,
I have issue with diacritics/special characters in Name field.
I changed encoding to UTF-8 in ai-responsive-contact-form.php, so it works and displays all characters correctly:
// settings for mail received by user
$ai_headers .= “Content-type: text/html; charset=UTF-8\n”;// settings for mail received by admin
$ai_admin_headers .= “Content-type: text/html; charset=UTF-8\n”;But then email with name including diacritics/special characters is not sent.
When I fill my name Michal Buri?in and send a form I recieve message and email, that it was successfully sent.
However no email is received to delivery address. If I fill name without diacritics, it works perfectly.
Solution:
$ai_admin_headers .= “From: “.str_replace(‘ ‘, ‘-‘, $ai_name).”\n”;
From cannot handle special characters so i changed it to:
$ai_admin_headers .= “From: contact-form\n”;
I think it would make plugin more versatile for use in another countries than US/English speaking countries.
Thanks for great work on this plugin!
- The topic ‘Diacritics/Special characters – Not sending emails’ is closed to new replies.