Cyrillic email from contact form

  • Posted in : Photographer
  • yfedinchyk
    Participant

    Hi,
    When I type name and content in cyrillic I recieve to my email text which isnt not equal to what I have wrote. I think there is a problem with character table but I don’t know what and where I should edit.

    yfedinchyk
    Participant

    Edited file: send-mail.php
    section: // send mail
    Added after all headers
    $headers .= “MIME-Version: 1.0″.”\r\n” .”Content-type: text/plain; charset=UTF-8″. “\r\n”;

    changed string
    $mail_result = mail( $to, $subject, $body, $headers );
    to string
    $mail_result = mail( $to, ‘=?UTF-8?B?’.base64_encode($subject).’?=’, $body, $headers );

    now everything is ok

    ahmetsali
    Keymaster

    Hi, thanks for sharing the solution.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register