当前位置:网站首页>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
边栏推荐
- 泰凌冲刺科创板:拟募资13亿 国家大基金与小米长江是股东
- String substitution
- Comprehensive evaluation of good-looking, easy-to-use and powerful handwriting note taking software: notability, goodnotes, marginnote, handwriting, notes writers, collanote, collanote, prodrafts, not
- Redis:字符串类型数据的操作命令
- 7-24 reduction of the simplest fraction (rolling Division)
- 6-9 statistics of single digits (15 points)
- GRPC的四种数据流以及案例
- JVM class loading
- Invalid Z-index problem
- 全文检索引擎Solr系列—–全文检索基本原理
猜你喜欢
Nucleic acid modified metal organic framework drug carrier | pcn-223 metal organic framework encapsulated ad adamantane | zif-8 encapsulated adriamycin (DOX)
八大排序
QT learning 22 layout manager (I)
JS Part III
Leetcode (4) - - trouver la médiane de deux tableaux ordonnés positifs
7-8 overspeed judgment
[Jilin University] information sharing of postgraduate entrance examination and re examination
QT learning 23 layout manager (II)
Cross linked cyclodextrin metal organic framework loaded methotrexate slow-release particles | metal organic porous material uio-66 loaded with flavonoid glycosides | Qiyue
Scroll detection of the navigation bar enables the navigation bar to slide and fix with no content
随机推荐
allegro,orcad, net alias,port,off-page connector之间的异同点和如何选取
Exercise 6-6 use a function to output an integer in reverse order
QT learning 22 layout manager (I)
泰凌冲刺科创板:拟募资13亿 国家大基金与小米长江是股东
protobuf与grpc
Concat and concat_ Ws() differences and groups_ Use of concat() and repeat() functions
必贝特医药冲刺科创板:年营收97万亏损1.37亿 拟募资20亿
How to delete an attribute or method of an object
Exercise 10-2 recursive factorial sum
Comprehensive evaluation of good-looking, easy-to-use and powerful handwriting note taking software: notability, goodnotes, marginnote, handwriting, notes writers, collanote, collanote, prodrafts, not
Analysis of the characteristics of page owner
JVM runtime data area
JVM垃圾回收机
Eight sorts
Exercise 10-8 recursive implementation of sequential output of integers
MongoDB索引
QT learning 24 layout manager (III)
Doxorubicin loaded on metal organic framework MIL-88 DOX | folic acid modified uio-66-nh2 doxorubicin loaded [email
Metal organic framework MOFs loaded with non steroidal anti-inflammatory drugs | zif-8 wrapped Prussian blue loaded quercetin (preparation method)
7-4 BCD decryption (10 points)