撰写并通过命令行雷鸟发送电子邮件

问题描述:

我用这个命令发送一个日志文件雷鸟撰写并通过命令行雷鸟发送电子邮件

thunderbird -compose "subject='test',to='[email protected]',body=$output,attachment='/home/test/scan.log'" 

是launchs并显示雷鸟预填充编辑邮件窗口,我必须按手动发送按钮 它是如何是否可以自动发送电子邮件? screenshot thunderbird

Thunderbird不支持使用命令行自动发送电子邮件(即非交互式)。这个问题在这里得到解答 - https://support.mozilla.org/en-US/questions/1144493

它建议你直接与相关的SMTP服务器通信,而不是使用像Thunderbird这样的邮件客户端。

可能使用PHP - http://www.inmotionhosting.com/support/website/sending-email-from-site/using-the-php-mail-function-to-send-emails

+0

或通过javascript - https://www.emailjs.com/ – Malapeno