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>";
$message = wordwrap($message, 60);
$outro ="outo first part";
$outro .= 'outro';
mail($email.','.$myMail, "my name", $intro.','.$message.','.$outro , $headers);
if($valid == 1)
{
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
source
share