当前位置:网站首页>The mail function of LNMP environment cannot send mail
The mail function of LNMP environment cannot send mail
2022-07-03 14:18:00 【Brother Xing plays with the clouds】
Use LNMP Environmental Science , Test sending email in the probe , But it failed . It has been determined that mail() Function is on , So ,Google once , Found a good method ,Mark once .
The root cause of the problem
Not installed or started sendmail Components
terms of settlement
I'm a rookie , I'm not familiar with orders , So it's very detailed , Don't spray, old bird
1. reinstall sendmail Components , I use it CentOS , Use the following command to install
yum install sendmail
2. Restart with the following command php-fpm process
/etc/init.d/php-fpm restart
3. testing sendmail Whether it operates normally
/etc/init.d/sendmail status
If the display is running running Can .
Possible commands
/etc/init.d/sendmail start ( start-up sendmail)
/etc/init.d/sendmail stop ( close sendmail)
/etc/init.d/sendmail restart ( restart sendmail)
4. To configure php.ini, Fill in sendmail The absolute path of
Use the command to open edit php.ini
vi /usr/local/php/etc/php.ini
Input ?sendmail_path Find the location ( Or manually jump to find sendmail_path), You'll find that the default is the following code
;sendmail_path =
Press i Enter editor , Change this line to
sendmail_path = /usr/sbin/sendmail -t -i
Press Esc Key to exit editing , Input :wq Save and exit
5. restart php-fpm process
/etc/init.d/php-fpm restart
边栏推荐
- npm install卡住与node-npy的各种奇怪报错
- Raft 协议
- Metal organic framework (MOFs) antitumor drug carrier | pcn-223 loaded with metronidazole | uio-66 loaded with ciprofloxacin hydrochloride( Find the sum of the elements of each row of the matrix
- 关于回溯问题中的排列问题的思考(LeetCode46题与47题)
- 一文了解微分段应用场景与实现机制
- Invalid Z-index problem
- Thinking about the arrangement problem in the backtracking problem (leetcode questions 46 and 47)
- MongoDB数据库入门的常用命令
- How to bold text in AI
猜你喜欢

八大排序

Scroll detection, so that the content in the lower right corner is not displayed at the top of the page, but is displayed as the mouse slides

allegro,orcad, net alias,port,off-page connector之间的异同点和如何选取

Jiuyi cloud black free encryption free version source code

一文了解微分段应用场景与实现机制

Vite project commissioning

Article content typesetting and code highlighting

QT learning 19 standard dialog box in QT (top)

Exercise 10-2 recursive factorial sum

Exercise 8-8 moving letters
随机推荐
Toast UI editor (editor allows you to edit your markup document using text or WYSIWYG, with syntax highlighting, scrolling synchronization, real-time preview and chart functions.)
Exercise 9-3 plane vector addition
Raft agreement
Leetcode (4) -- find the median of two positively ordered arrays
泰凌冲刺科创板:拟募资13亿 国家大基金与小米长江是股东
天图投资冲刺港股:资产管理规模249亿 投了小红书与奈雪
Too many files with unapproved license
Sendmail无法发送邮件及发送过慢解决
String reverse order
JVM class loading
Common mixins
Find the sum of the elements of each row of the matrix
7-23 currency conversion (using array conversion)
Back to top implementation
中感微冲刺科创板:年营收2.4亿净亏1782万 拟募资6亿
Redis:字符串類型數據的操作命令
Recent learning summary
TS code automatically generates JS
FPGA test method takes mentor tool as an example
js 2023. String pair equal to the target string after connection