2
有什么办法可以在linux终端发送简单的电子邮件吗?如何从命令提示符发送电子邮件?
to: [email protected]
sub: Sending email from linux terminal
body: This is a short email sent from linux terminal
需要设置什么样的堆栈或smtp?我如何设置它们?
有什么办法可以在linux终端发送简单的电子邮件吗?如何从命令提示符发送电子邮件?
to: [email protected]
sub: Sending email from linux terminal
body: This is a short email sent from linux terminal
需要设置什么样的堆栈或smtp?我如何设置它们?
版本的终端:
mail [email protected]
版本的shell脚本:
echo "This is a short email" | mail -n -s "Sending email" [email protected]
AFAIK典型的Linux发行版安装MTA(的sendmail /后缀/进出口/ ...),默认情况下。如果你有静态的公共IP地址,那么你很可能有一个工作的自我配置。
没有静态公网IP的MTA配置比较棘手。