09stephenb
09stephenb

Reputation: 9806

Error in sending an email with BLAT

I have this code:

blat -to [email protected] -server -f [email protected] -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.

Upvotes: 1

Views: 3311

Answers (2)

Ramiz Syed
Ramiz Syed

Reputation: 43

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/

Upvotes: 0

SachaDee
SachaDee

Reputation: 9545

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/

Upvotes: 3

Related Questions