Error in sending an email with BLAT

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 01:07:22

问题


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.


回答1:


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/




回答2:


It seems you are trying to send via mail() check the error log. You have to add an authenticate method with the port number and security type. you can find all free SMTP server list here: https://www.weblydigital.com/free-smtp-server-list-public-smtp-host/



来源:https://stackoverflow.com/questions/24364876/error-in-sending-an-email-with-blat

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!