Php mail does not arrive

Hey, I'm trying to send email via php mail ().

My web space is on ALL-INKL. I previously tried the code on the test account and it worked fine, but when I registered the official account, I stopped receiving emails.

Here is the code:

$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=UTF-8' . "\r\n";

some isset () - functions that check the inputs to set to 1 ...

$intro ="some intro<br><br>";
    // string breaks after 60 chars
    $message = wordwrap($message, 60);
    $outro ="outo first part";
    $outro .= 'outro';

    // Send
    mail($email.','.$myMail, "my name", $intro.','.$message.','.$outro , $headers);

    if($valid == 1)
    {
        //check errors
        if(@mail($email.','.$myMail, "some intro", $intro.','.$message.','.$outro , $headers))
        {
            echo json_encode("sending successful");
        }else
        {
            echo json_encode("sending not successful");
        }
    }

I hope someone can help me

+4
source share

All Articles