Using BLAT as a mail notification service in GITLAB.
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 [email protected]
We want to send this from the GITLAB. But I am getting BLAT error log as :
Error: Not a socket for a SMTP serverHow to achieve this and get rid of this error.