当前位置:网站首页>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 .
边栏推荐
- In line elements are transformed into block level elements, and display transformation and implicit transformation
- Tencent cloud database public cloud market ranks top 2!
- Redisson bug analysis
- Unity making plug-ins
- Tencent architects first, 2022 Android interview written examination summary
- Rhcsa Road
- Digital triangle model acwing 1018 Minimum toll
- Force deduction brush question - 98 Validate binary search tree
- Tencent T3 teaches you hand in hand. It's really delicious
- Recyclerview GridLayout bisects the middle blank area
猜你喜欢
SQL injection 2
Detailed introduction of distributed pressure measurement system VIII: basic introduction of akka actor model
棋盘左上角到右下角方案数(2)
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
逻辑是个好东西
Quel genre de programmation les enfants apprennent - ils?
【GET-4】
【每周一坑】正整数分解质因数 +【解答】计算100以内质数之和
[diy] how to make a personalized radio
Event center parameter transfer, peer component value transfer method, brother component value transfer
随机推荐
Ideas and methods of system and application monitoring
Guangzhou's first data security summit will open in Baiyun District
【云原生与5G】微服务加持5G核心网
棋盘左上角到右下角方案数(2)
Boder radius has four values, and boder radius exceeds four values
Anaconda安裝後Jupyter launch 沒反應&網頁打開運行沒執行
Maximum likelihood estimation and cross entropy loss
8086 instruction code summary (table)
BUUCTF---Reverse---easyre
Why do novices often fail to answer questions in the programming community, and even get ridiculed?
Leetcode question 283 Move zero
Tencent T4 architect, Android interview Foundation
小孩子学什么编程?
[cloud lesson] EI lesson 47 Mrs offline data analysis - processing OBS data through Flink
(work record) March 11, 2020 to March 15, 2021
Wechat applet common collection
[DIY]自己设计微软MakeCode街机,官方开源软硬件
2022 nurse (primary) examination questions and new nurse (primary) examination questions
Crawler (14) - scrape redis distributed crawler (1) | detailed explanation
Groovy基础语法整理