在 bash 脚本中使用 openssl s_client 发送带有附件的电子邮件
如何使用openssl s_client命令将带有附件的电子邮件发送为:
openssl s_client -crlf -quiet -starttls smtp -connect $SMTPHostName:587
使用bash脚本
How to send an email with attachment using openssl s_client command as:
openssl s_client -crlf -quiet -starttls smtp -connect $SMTPHostName:587
using bash script
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将SMTP命令输送到openssl s_client的
结果:
可以使用“ help”显示可用命令。
命令序列通常是这样的:
NB。可能需要一个身份验证。
要添加类似以下内容的附件,需要添加到电子邮件中。
文件bullet.png用uuencode编码为ASCII,并添加到消息中。您可以使用其他MIME格式。
命令可能因邮件服务器而异,具体取决于邮件传播和RFC的支持
You can pipe smtp commands into the openssl s_client with
Result:
Available commands can be shown with 'help'.
The sequence of commands is usually something like this:
NB. There may be an authentication needed.
To add an attachment something like the following needs to be added to the email.
The file bullet.png was encoded with uuencode to ascii and added to the message. You can use other MIME formats.
Commands can vary from mailserver to mailserver depending on what for mailextensions and RFC's they support