I have this code:
blat -to test@test.com -server -f test@test.com -subject “subject” -body “body” -attach DATA.log
It uses blat to send a email but it gives the error:
Not enough arguments supplied
Does any one know what I’m doing wrong? Thanks.
解决方案
Try like this :
The server is setted here for GMX. You have to set it for your provider.
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
And here a list of the most commons SMTP and POP Servers :
http://www.arclab.com/en/amlc/list-of-smtp-and-pop3-servers-mailserver-list.html
Edit :
Apparently you’ll need stunnel to provide the Secure Sockets Layer (SSL) as required by GMail.
You can also try with an another provider like GMX who worked for me.
Or you can try Mailsend :
https://github.com/muquit/mailsend/
机译
我有此代码:
blat -to test@test.com -server -f test@test.com -subject “subject” -body “body” -attach DATA.log
它使用blat发送电子邮件,但出现错误:
提供的参数不足
有人知道我在做什么错吗?谢谢.
解决方案
尝试这样:
服务器在此处设置为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
编辑:
显然,您需要隧道来提供安全套接字层(SSL),以确保安全GMail.
您还可以尝试为我工作的其他提供商(例如GMX).
或者您可以尝试Mailsend:
https://github.com/muquit/mailsend/
https://github.com/muquit/mailsend-go
转载请注明:VPS驿站 » 使用BLAT发送电子邮件时出错(Error in sending an email with BLAT)