Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The solution to the failure of sending Mail by php in mac

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly introduces the solution to the failure of sending email by php in mac. It is very detailed and has a certain reference value. Interested friends must read it!

Mac php failed to send mail solutions: 1, find and open the php.ini file; 2, add "sendmail_path = sendmail-t-I" or "sendmail_path = / usr/sbin/sendmail-t-I".

This article operating environment: macOS10.15 system, PHP7.1 version, MacBook Air 2019 computer

What if mac php fails to send mail?

The question shows:

Fatal: open lock file pid/master.pid: unable to set exclusive lock: Resource temporarily unavailable problem.

Solution:

Take a look at the php.ini file and make sure you can see this line:

Sendmail_path = sendmail-t-I

Or

Sendmail_path = / usr/sbin/sendmail-t-I

It should not have any quotation marks, and there is no semicolon (;) before it. If it does not exist or is different, change it to match the above line.

If that doesn't help, look at http://switch.richard5.net/2006/08/19/fatal-open-lock-file-pidmasterpid/ and see if it helps. Now that you have updated PHP, I suspect that postfix is a problem.

In addition:

You may have a suffix configuration problem. If the email you are trying to send is not from the local server, you may need to check / etc/mailnames and / etc/postfix/main.cf checks myhostname,mydomain and myorigin.

The above is all the contents of this article entitled "the solution to the failure of sending email by php in mac". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report