[英]How to send a simple HTML file from a bash script with the curl command using SendGrid's SMTP API?
[英]How can I send email through a bash script using a different SMTP server and credentials?
我有一个执行MySQL转储的脚本,我希望它在发生故障时以及何时发送电子邮件。 如何使TLS使用带有用户名/密码,特殊端口和备用SMTP主机的TLS发送电子邮件?
尝试sendEmail: http : //caspian.dotconf.net/menu/Software/SendEmail/,它允许您使用-s
标志指定SMTP服务器和端口。 可以使用-o tls=yes
启用TLS,可以分别使用-o username=...
和-o password=...
设置用户名和密码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.