简体   繁体   English

在终端中使用mail命令发送电子邮件并指定发件人地址

[英]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.

相关问题 每当我在 django 中使用 send_mail 时,它都会向我发送来自我自己的电子邮件,而不是我提供的地址 - Whenever I use send_mail in django it sends me emails from myself rather than the address I'm providing laravel 从多个 smtp 电子邮件发送邮件 - laravel send mail from multiple smtp emails Jira从用户地址发送电子邮件 - Jira send emails from user address 如何在 laravel 8 mail::send 中即时指定 - How to specify from on the fly in laravel 8 mail::send 如何通过(PHP + swiftmailer)将Yahoo邮件中的电子邮件发送给其他人? - how to send Emails from yahoo mail to the others by (PHP + swiftmailer)? 从Magento 1.9中的外部邮件服务器发送电子邮件 - Send emails from external mail server in Magento 1.9 使用Git commit中的电子邮件地址发送Jenkins通知 - Use e-mail address from Git commit to send Jenkins notifications 为什么我不能在PHP中使用简单的mail()函数从我的PC向我的Gmail帐户发送电子邮件? - Why can't I use simple mail() function in PHP to send emails to my Gmail account from my PC? 从显示Gmail地址的地址发送邮件SMTP Gmail - Send mail smtp gmail from address showing the gmail address symfony2-FOSUserBundle-根据当前语言环境从地址发送电子邮件 - symfony2 - FOSUserBundle - send emails from address based on current locale
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM