Multi-language Responsive Contact Form
Diacritics/Special characters - Not sending emails (1 post)

  1. mburisin
    Posted 2 years ago #


    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.


    $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!


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.