当前位置:网站首页>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 .
边栏推荐
- 数字三角形模型 AcWing 1018. 最低通行费
- [DSP] [Part 1] start DSP learning
- Tencent byte Alibaba Xiaomi jd.com offer got a soft hand, and the teacher said it was great
- 01 基础入门-概念名词
- Tips for web development: skillfully use ThreadLocal to avoid layer by layer value transmission
- 02 基础入门-数据包拓展
- In unity space, an object moves around a fixed point on the sphere at a fixed speed
- Technology sharing | packet capturing analysis TCP protocol
- 知识图谱构建流程步骤详解
- [cloud native and 5g] micro services support 5g core network
猜你喜欢
持续测试(CT)实战经验分享
Tencent T3 Daniel will teach you hand-in-hand, the internal information of the factory
Node.js: express + MySQL实现注册登录,身份认证
Rhcsa Road
数字三角形模型 AcWing 1018. 最低通行费
Number of schemes from the upper left corner to the lower right corner of the chessboard (2)
小孩子學什麼編程?
Implementation of packaging video into MP4 format and storing it in TF Card
[DSP] [Part 2] understand c6678 and create project
22-07-05 upload of qiniu cloud storage pictures and user avatars
随机推荐
Error analysis ~csdn rebound shell error
[DIY]如何制作一款个性的收音机
Anaconda安装后Jupyter launch 没反应&网页打开运行没执行
Why do novices often fail to answer questions in the programming community, and even get ridiculed?
Continuous test (CT) practical experience sharing
Appx code signing Guide
Notes on beagleboneblack
JS implementation force deduction 71 question simplified path
Database - how to get familiar with hundreds of tables of the project -navicat these unique skills, have you got it? (exclusive experience)
设计你的安全架构OKR
Problems encountered in using RT thread component fish
Tencent cloud database public cloud market ranks top 2!
recyclerview gridlayout 平分中间空白区域
Tencent Android development interview, basic knowledge of Android Development
Pytest (3) - Test naming rules
What programming do children learn?
Technology sharing | packet capturing analysis TCP protocol
使用.Net分析.Net达人挑战赛参与情况
【GET-4】
Use of OLED screen