Solved: 5 Years, 11 Months, 2 Weeks ago MyBB was unable to send the email using the PHP mail() function.
#1
Solved: 5 Years, 11 Months, 2 Weeks ago
MyBB was unable to send the email using the PHP mail() function

using this function php mail() works.
<?

$from = "From: test <[email protected]>";

$to = "[email protected]"; 

$subject = "Hi! ";

$body = "TEST";



if(mail($to,$subject,$body,$from)) echo "MAIL - OK";

else echo "MAIL FAILED";
?>

attachement my mail setting


Attached Files Thumbnail(s)
   
Reply
#2
Solved: 5 Years, 11 Months, 2 Weeks ago
That would be from using an improper mail header. You could probably just leave the additional mail headers setting blank. The from header is set by the return email setting under Config->Site Details.
Reply
#3
Solved: 5 Years, 11 Months, 2 Weeks ago
(2019-02-10, 01:21 AM)dragonexpert Wrote: That would be from using an improper mail header. You could probably just leave the additional mail headers setting blank. The from header is set by the return email setting under Config->Site Details.

solved your php mail() function check admin mail if admin mail id and entered mail id in mail setting are different issue occured
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)