当前位置:网站首页>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
边栏推荐
- Redis:字符串類型數據的操作命令
- Exercise 10-1 calculate the sum of 1 to n using recursive functions
- 好看、好用、强大的手写笔记软件综合评测:Notability、GoodNotes、MarginNote、随手写、Notes Writers、CollaNote、CollaNote、Prodrafts、Noteshelf、FlowUs、OneNote、苹果备忘录
- QT learning 22 layout manager (I)
- Exercise 8-7 string sorting
- Thread.sleep和TimeUnit.SECONDS.sleep的区别
- Selective sorting
- Exercise 6-6 use a function to output an integer in reverse order
- Folic acid modified metal organic framework (zif-8) baicalin loaded metal organic framework composite magnetic material (AU- [email
- LNMP环境mail函数不能发送邮件解决
猜你喜欢

Fabric. JS document

Leetcode(4)——尋找兩個正序數組的中比特數

JVM class loading

7-18 finding the single root of polynomial by dichotomy

Cross linked cyclodextrin metal organic framework loaded methotrexate slow-release particles | metal organic porous material uio-66 loaded with flavonoid glycosides | Qiyue

Vite project commissioning

Exercise 10-1 judge the three digits that meet the conditions

Redis:Redis的数据结构、key的操作命令

Exercise 9-3 plane vector addition

Configure stylelint
随机推荐
Exercise 8-7 string sorting
中国锂电池电解液行业市场专项调研报告(2022版)
关于回溯问题中的排列问题的思考(LeetCode46题与47题)
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.)
Cross linked cyclodextrin metal organic framework loaded methotrexate slow-release particles | metal organic porous material uio-66 loaded with flavonoid glycosides | Qiyue
x86汇编语言-从实模式到保护模式 笔记
7-17 crawling worms (break exercise)
QT learning 25 layout manager (4)
7-23 currency conversion (using array conversion)
JVM runtime data area
556. 下一个更大元素 III
Exercise 6-6 use a function to output an integer in reverse order
QT learning 24 layout manager (III)
JS download files through URL links
Formation of mil-100 (FE) coated small molecule aspirin [email protected] (FE) | glycyrrhetinic acid modified metal organ
添加Zabbix计算类型项目Calculated items
Redis:字符串类型数据的操作命令
Exercise 10-6 recursively find Fabonacci sequence
NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线
Leetcode(4)——尋找兩個正序數組的中比特數