Function mail() PHP not working. I can't sending email


I can’t sending email in WP and PHP applications.


You could check if port 25 open. EE uses port 25 to send mails via postfix. Some providers like google cloud block port 25 to prevent spamming. You can also try using a SMTP plugin in the wordpress site and check if the mails are being sent.


Yeah it’s best to use SMTP relay plugin. I use to relay my emails.


Agree with Cim. I have tried many such solutions and my personal Fave is Sendgrid and “WP Mail SMTP by WPForms” plugin. Easy for simplicity, just install it, choose Sendgrid (after you get account) and paste in API. Done. There are no settings to get wrong. Good to install a mail log plugin too.


sendmail: RCPT (451 4.3.0 Temporary lookup failure)


^_^[]$ php -r ‘mail(“”, “Hello Human”, “Hello from EasyEngine!”);’

sendmail: RCPT (451 4.3.0 Temporary lookup failure)

php -r 'mail("", "Hello Human", "Hello from EasyEngine!");'
sendmail: RCPT TO:<> (451 4.3.0 <>: Temporary lookup failure) 


I send e-mail and display this: Temporary lookup failure.


Sorry, my english is bad.


I’m have same error


If you change the email to another, for example,, it works. It does not send email with the same domain, example