当前位置:网站首页>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 .
边栏推荐
- [weekly pit] calculate the sum of primes within 100 + [answer] output triangle
- "Penalty kick" games
- An East SMS login resurrection installation and deployment tutorial
- In unity space, an object moves around a fixed point on the sphere at a fixed speed
- Gui Gui programming (XIII) - event handling
- 02 基础入门-数据包拓展
- 【GET-4】
- Special topic of rotor position estimation of permanent magnet synchronous motor -- Summary of position estimation of fundamental wave model
- Learn to punch in Web
- Rhcsa Road
猜你喜欢

【GET-4】

PowerPivot - DAX (first time)

2022 Guangdong Provincial Safety Officer C certificate third batch (full-time safety production management personnel) simulation examination and Guangdong Provincial Safety Officer C certificate third

Case ① | host security construction: best practice of 3 levels and 11 capabilities

5. Nano - Net in wireless body: Top 10 "is it possible?" Questions
![[weekly pit] positive integer factorization prime factor + [solution] calculate the sum of prime numbers within 100](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
[weekly pit] positive integer factorization prime factor + [solution] calculate the sum of prime numbers within 100
![[network planning] Chapter 3 data link layer (4) LAN, Ethernet, WLAN, VLAN](/img/b8/3d48e185bb6eafcdd49889f0a90657.png)
[network planning] Chapter 3 data link layer (4) LAN, Ethernet, WLAN, VLAN
![[weekly pit] calculate the sum of primes within 100 + [answer] output triangle](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
[weekly pit] calculate the sum of primes within 100 + [answer] output triangle

知识图谱构建流程步骤详解

Utilisation de l'écran OLED
随机推荐
为什么新手在编程社区提问经常得不到回答,甚至还会被嘲讽?
2022 nurse (primary) examination questions and new nurse (primary) examination questions
Anaconda安装后Jupyter launch 没反应&网页打开运行没执行
深度学习分类网络 -- ZFNet
Groovy basic syntax collation
Number of schemes from the upper left corner to the lower right corner of the chessboard (2)
Anaconda安裝後Jupyter launch 沒反應&網頁打開運行沒執行
[DSP] [Part 2] understand c6678 and create project
New generation garbage collector ZGC
Tencent T3 Daniel will teach you hand-in-hand, the internal information of the factory
Jupyter launch didn't respond after Anaconda was installed & the web page was opened and ran without execution
Gui Gui programming (XIII) - event handling
Maximum likelihood estimation and cross entropy loss
8086 instruction code summary (table)
Special topic of rotor position estimation of permanent magnet synchronous motor -- fundamental wave model and rotor position angle
Unity load AB package
[weekly pit] output triangle
Technology sharing | packet capturing analysis TCP protocol
BeagleBoneBlack 上手记
In line elements are transformed into block level elements, and display transformation and implicit transformation