Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 1 Week, 11 Hours ago MyBB was unable to send the email using the PHP mail() function.
#1
Solved: 1 Week, 11 Hours 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: 1 Week, 11 Hours 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: 1 Week, 11 Hours ago
(02-10-2019, 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: 1 Guest(s)