0

We have a GITLAB setup and We want to send the output of a error file as a attachment and giving a proper message including in the body as a mail notification to the recipients using BLAT as a service. Using below code

blat -subject "IP is not pingable" -body "please check the attachment for the error logs" -attach C:\Temp\error.txt -to santoshkumar.angadi@yahoo.com

We want to send this from the GITLAB. But I am getting BLAT error log as :

Error: Not a socket for a SMTP server. How to achieve this

Santosh Kumar
  • 53
  • 1
  • 10

1 Answers1

0

Specify an SMTP server with the -server <address>

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

Make sure it's one that blat can connect to.

As http://www.blat.net/?docs/readme.txt says: To use Blat you must have access to a SMTP server via TCP-IP

Aleksey Tsalolikhin
  • 1,518
  • 7
  • 14