使用BLAT发送电子邮件时出错

时间:2014-06-23 11:34:37

标签: email batch-file blat

我有这段代码:

blat -to test@test.com -server -f test@test.com -subject "subject" -body "body" -attach DATA.log

它使用blat发送电子邮件,但它会出错:

  

提供的参数不足

有人知道我做错了什么吗?感谢。

2 个答案:

答案 0 :(得分:3)

试试这样:

此处为GMX设置服务器。您必须为您的提供商设置它。

blat.exe -server SMTP.GMX.COM -f your_E-mail_address -to Destination_E-mail_adress -s "cc text" -body "body text" -u "Login of your E-mail" -pw "Password of your E-mail"

http://www.blat.net/syntax/syntax.html

这里列出了最常见的SMTP和POP服务器:

http://www.arclab.com/en/amlc/list-of-smtp-and-pop3-servers-mailserver-list.html

编辑:

显然,您需要stunnel来提供GMail要求的安全套接字层(SSL)。

您也可以尝试与GMX合作的其他提供商。

或者你可以试试Mailsend:

https://github.com/muquit/mailsend/

答案 1 :(得分:0)

似乎您正在尝试通过mail()发送,请检查错误日志。您必须添加带有端口号和安全性类型的身份验证方法。 您可以在此处找到所有免费的SMTP服务器列表:https://www.weblydigital.com/free-smtp-server-list-public-smtp-host/