Bash - how to use sendmail
程序员文章站
2022-07-11 08:12:06
...
touch exeSendMail.ksh
touch eg.txt
1, eg.txt content:
hello world!
2, write in exeSendMail.ksh
Send mail
(
echo "From: SANT<SANT@gmail.com>";
echo "To: bonnie.tang@gmail.com";
echo "Subject: send email";
cat eg.txt
)| /usr/sbin/sendmail -t
my mail bonnie.tang@gmail.com will recive email with content "hello world!" from SANT<SANT@gmail.com>
touch eg.txt
1, eg.txt content:
hello world!
2, write in exeSendMail.ksh
Send mail
(
echo "From: SANT<SANT@gmail.com>";
echo "To: bonnie.tang@gmail.com";
echo "Subject: send email";
cat eg.txt
)| /usr/sbin/sendmail -t
my mail bonnie.tang@gmail.com will recive email with content "hello world!" from SANT<SANT@gmail.com>
推荐阅读
-
How to use special characters in XML?
-
[Python]How to use magic methods in Python?
-
How to Use HTML5 FUll Screen API(如何使用HTML5全屏接口)
-
How to use HttpClient HttpClient
-
Bash - how to use sendmail
-
How to use provided scope for jar file in Gradle build?
-
[Python] How to use Pyramid?
-
How to use VS2019 to Compile PhysX-4.0.0
-
How to use Java functional Consumer interface example
-
example how to use 'stub' and 'mock' in sepc