当前位置:网站首页>The mail command is used in combination with the pipeline command statement
The mail command is used in combination with the pipeline command statement
2022-07-06 20:31:00 【sky9899】
Operating environment :
OS: CentOS Linux release 7.9.2009 (Core)
Practical task : Send email interactively , At the same time, combined with pipeline command statements , Put the edited content with the title “ pack ”, Finally, a command is used to send the email .
[[email protected] ~] # yum install mailx
[[email protected] ~] # vi /etc/mail.rc
set bsdcompat
set from =***@163.com # Mailing address
set smtp =smtp.163.com # Send mail server
set smtp-auth-user =***@163.com # account number
set smtp-auth-password =****** # Application authorization code
set smtp-auth =login # Mail authentication method
[[email protected] ~] # yum install sendmail
[[email protected] ~] # systemctl start sendmail.service
# Use pipe sign sentences
[[email protected] ~] # echo "Content" | mail -S "Subject" ***@163.com
Non-null variable name required
Could not resolve host:
"/root/dead.letter" 10/277
. . . message not sent.
# The above error , The main reason is “=” There are spaces in the symbol
set smtp = smtp.163.com
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
- 18.
- 19.
- 20.
Summary : Do the above experiments , There are two main steps : First, install and configure mailx、sendmail service ; secondly , To be in 163 Email application to open related services , At the same time, get the authorization code .
边栏推荐
- Comment faire une radio personnalisée
- JMeter server resource indicator monitoring (CPU, memory, etc.)
- 使用ssh连接被拒
- BUUCTF---Reverse---easyre
- Tencent byte and other big companies interview real questions summary, Netease architects in-depth explanation of Android Development
- 棋盘左上角到右下角方案数(2)
- 2022 nurse (primary) examination questions and new nurse (primary) examination questions
- Basic knowledge of lists
- [cloud native and 5g] micro services support 5g core network
- Summary of different configurations of PHP Xdebug 3 and xdebug2
猜你喜欢
B-杰哥的树(状压树形dp)
[weekly pit] output triangle
为什么新手在编程社区提问经常得不到回答,甚至还会被嘲讽?
Maximum likelihood estimation and cross entropy loss
Enumeration gets values based on parameters
Use of OLED screen
[diy] self designed Microsoft makecode arcade, official open source software and hardware
Oceanbase Community Edition OBD mode deployment mode stand-alone installation
Notes on beagleboneblack
OLED屏幕的使用
随机推荐
设计你的安全架构OKR
解剖生理学复习题·VIII血液系统
Unity making plug-ins
Linear distance between two points of cesium
【DSP】【第一篇】开始DSP学习
Tencent byte Alibaba Xiaomi jd.com offer got a soft hand, and the teacher said it was great
【计网】第三章 数据链路层(3)信道划分介质访问控制
5. 無線體內納米網:十大“可行嗎?”問題
【每周一坑】信息加密 +【解答】正整数分解质因数
Is it difficult for small and micro enterprises to make accounts? Smart accounting gadget quick to use
Application layer of tcp/ip protocol cluster
Zoom with unity mouse wheel: zoom the camera closer or farther
Rhcsa Road
Appx code signing Guide
【每周一坑】正整数分解质因数 +【解答】计算100以内质数之和
SSO single sign on
SSH connection denied
Number of schemes from the upper left corner to the lower right corner of the chessboard (2)
Recyclerview not call any Adapter method :onCreateViewHolder,onBindViewHolder,
Digital triangle model acwing 1018 Minimum toll