当前位置:网站首页>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
边栏推荐
- Thread.sleep和TimeUnit.SECONDS.sleep的区别
- Strategy, tactics (and OKR)
- Formation of mil-100 (FE) coated small molecule aspirin [email protected] (FE) | glycyrrhetinic acid modified metal organ
- Common mixins
- 7-8 overspeed judgment
- QT learning 24 layout manager (III)
- 7-10 calculate salary
- JVM garbage collector
- PCB中常用快捷键
- 必贝特医药冲刺科创板:年营收97万亏损1.37亿 拟募资20亿
猜你喜欢

Thinking about the arrangement problem in the backtracking problem (leetcode questions 46 and 47)

The small project (servlet+jsp+mysql+el+jstl) completes a servlet with login function, with the operation of adding, deleting, modifying and querying. Realize login authentication, prevent illegal log

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

Solution to failure or slow downloading of electron when electron uses electron builder to package

使用并行可微模拟加速策略学习

JS Part III

Uio-66-cooh loaded bendamostine | hydroxyapatite (HA) coated MIL-53 (FE) nanoparticles | baicalin loaded manganese based metal organic skeleton material

Exercise 8-7 string sorting

Understanding of closures

Leetcode (4) - - trouver la médiane de deux tableaux ordonnés positifs
随机推荐
八大排序
Too many files with unapproved license
JS shift operators (< <,> > and > > >)
Uio-66-cooh loaded bendamostine | hydroxyapatite (HA) coated MIL-53 (FE) nanoparticles | baicalin loaded manganese based metal organic skeleton material
Redis:Redis的数据结构、key的操作命令
QT learning 19 standard dialog box in QT (top)
Leetcode (4) -- find the median of two positively ordered arrays
Redis:字符串類型數據的操作命令
JS first summary
常见问题之PHP——ldap_add(): Add: Undefined attribute type in
Exercise 8-7 string sorting
Leetcode(4)——尋找兩個正序數組的中比特數
The small project (servlet+jsp+mysql+el+jstl) completes a servlet with login function, with the operation of adding, deleting, modifying and querying. Realize login authentication, prevent illegal log
FPGA test method takes mentor tool as an example
28:第三章:开发通行证服务:11:在配置文件中定义属性,然后在代码中去获取;
JVM object lifecycle
Thread.sleep和TimeUnit.SECONDS.sleep的区别
Exercise 9-1 time conversion
Common plug-ins for vite project development
必贝特医药冲刺科创板:年营收97万亏损1.37亿 拟募资20亿