Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #216056


    I dont receive mail from contact form and orders on my site, but if i put mail.txt in main directory on my hosting, and write my own contact form in it, it works.
    Here is a code in mail.txt:
    ?<meta http-equiv=’refresh’ content=’5; url=http://my site/’>
    <meta charset=”UTF-8″ />
    if (isset($_POST[‘name’])) {$name = $_POST[‘name’]; if ($name == ”) {unset($name);}}
    if (isset($_POST[‘email’])) {$email = $_POST[‘email’]; if ($email == ”) {unset($email);}}
    if (isset($_POST[‘sub’])) {$sub = $_POST[‘sub’]; if ($sub == ”) {unset($sub);}}
    if (isset($_POST[‘body’])) {$body = $_POST[‘body’]; if ($body == ”) {unset($body);}}

    if (isset($name) && isset($email) && isset($sub) && isset($body)){

    $address = “my e-mail”;
    $mes = “Имя: $name \nE-mail: $email \nТема: $sub \nТекст: $body”;
    $send = mail ($address,$sub,$mes,”Content-type:text/plain; charset = UTF-8\r\nFrom:$email”);
    if ($send == ‘true’)
    {echo “Сообщение отправлено, через 5 секунд Вы будете направлены на главную страницу”;}
    else {echo “Ошибка, сообщение не отправлено!”;}

    echo “Вы заполнили не все поля, необходимо вернуться назад!”;

    But this code not solve problem with orders from woocommerce :(
    I need help:)
    Thx in advance



    Can you create an administrator account and post it here as a private reply?


    This reply has been marked as private.


    Go to your WordPress Dashboard an create a new User (Users > Add new), fill the camps and set the Role as Administrator, then paste the info here as a private reply.


    This reply has been marked as private.


    If the woocommerce order mails, etc. don’t work it’s a sever configuration issue and not a theme issue. You can test this by switching to another theme and probably the order mails still won’t work.

    To solve the issue you can try to install: and to send the mails via smtp. If this doesn’t work please contact the server administrator/hos and ask him to check the server configuration for you.

    Best regards,

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

You must be logged in to reply to this topic.