[英]Use mail command in terminal to send emails and specify From address
I have tried to send thousands of emails through running a csh script to execute the "mail" command. 我试图通过运行csh脚本执行“ mail”命令来发送数千封电子邮件。 But all my emails were blocked by the recipient. 但是我的所有电子邮件都被收件人阻止了。 I was told that the blocking reason is because of the workstation domain (kichisatoru@Sky.local), which is not a real domain (eg xx@gmail.com). 有人告诉我,阻止原因是由于工作站域(kichisatoru@Sky.local),而不是真实域(例如xx@gmail.com)。 How can I fix this issue, so the recipient can receive my emails in the standard way? 如何解决此问题,以便收件人可以以标准方式接收我的电子邮件?
My csh: 我的csh:
#!/bin/csh
foreach eml (`ls *.eml`)
mail recipient@edu < $eml
echo $eml sent...
end
My problem is fixed! 我的问题解决了! I have found a very detailed manual online http://www.developerfiles.com/how-to-send-emails-from-localhost-mac-os-x-el-capitan/ 我在网上http://www.developerfiles.com/how-to-send-emails-from-localhost-mac-os-x-el-capitan/找到了非常详细的手册
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.