当前位置:网站首页>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
边栏推荐
- 天图投资冲刺港股:资产管理规模249亿 投了小红书与奈雪
- Vite project commissioning
- 556. 下一个更大元素 III
- 7-17 crawling worms (break exercise)
- Analysis of the characteristics of page owner
- JVM object lifecycle
- Mysql多表查询 #子查询
- 7-14 sum integer segments (C language)
- 7-24 reduction of the simplest fraction (rolling Division)
- 中国锂电池电解液行业市场专项调研报告(2022版)
猜你喜欢

QT learning 20 standard dialog box in QT (middle)

Programmable logic device software testing

Redis: redis data structure and key operation commands

JS matrix zero

Eight sorts

好看、好用、强大的手写笔记软件综合评测:Notability、GoodNotes、MarginNote、随手写、Notes Writers、CollaNote、CollaNote、Prodrafts、Noteshelf、FlowUs、OneNote、苹果备忘录

Exercise 10-2 recursive factorial sum

Redis:字符串类型数据的操作命令

28:第三章:开发通行证服务:11:在配置文件中定义属性,然后在代码中去获取;

牛客网:过河卒
随机推荐
Programmable logic device software testing
Reflection -- basic usage
Interface for querying IP home
FPGA test method takes mentor tool as an example
Invalid Z-index problem
Exercise 6-1 classify and count the number of characters
Current situation, analysis and prediction of information and innovation industry
剑指 Offer 28. 对称的二叉树
28: Chapter 3: develop Passport Service: 11: define attributes in the configuration file, and then obtain them in the code;
中国锂电池电解液行业市场专项调研报告(2022版)
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.)
JS Part III
Why don't I have a rookie medal
Preliminary summary of structure
八大排序
Polestar美股上市:5.5万台交付如何支持得起超200亿美元估值
js 2023. String pair equal to the target string after connection
C library function - qsort()
Example analysis of QT learning 18 login dialog box
Exercise 6-6 use a function to output an integer in reverse order