如何使用cygwin发送附件的电子邮件 [英] How to send an email with attachment using cygwin
本文介绍了如何使用cygwin发送附件的电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用cywing远程发送带附件的电子邮件。下面的代码与纯文本电子邮件完美配合。我尝试了一些在互联网上找到的方法,但它们不起作用。请任何人都可以帮助我
I am trying to send an email with attachment remotely using cywing. The code below works perfectly with a plain text email. I have tried a few methods a found on the internet, but they don't work. Please can anyone help me
#!/bin/bash
echo This is a testing email | email -s "hi" testing@yahoo.com
推荐答案
看看这里:从命令行重新发送带有附件的电子邮件 [ ^ ]
据我所知,您需要安装2个软件包(电子邮件和MTA)。配置完成后,您将能够发送带附件的电子邮件。
Have a look here: Sending Emails with Attachments from the Command Line Revisited [^]
As per i understand you need to install 2 packages (Email and MTA). After configuration, you'll be able to send email with attachment(s).
这篇关于如何使用cygwin发送附件的电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文