<div dir="ltr">
<div class="gmail-markdown_content"><p>Hello,</p>
<p>I am trying to set smartd with blat to send email if an error is caught but I can't seem to make a proper setting.</p>
<p>At first I set smartd to access blat.exe but blat always returned an exit status 1: </p>
<blockquote>
<p>smartd<span>[8580]</span>:CRIT: Test of blat.exe to <a href="mailto:mail@mail.com">mail@mail.com</a>: failed, exit status 1</p>
</blockquote>
<p>Now , I have created a batch file to set the server name and account:</p>
<blockquote>
<p>blat.exe -server <a href="http://server.mail.com">server.mail.com</a> -f <a href="mailto:sender@mail.com">sender@mail.com</a> -to <a href="mailto:mail@mail.com">mail@mail.com</a></p>
</blockquote>
<p>and set smartd to execute it. Now the test email is sent but I still receive an error each time from blat:</p>
<blockquote>
<p>smartd<span>[11488]</span>:CRIT<br>
Test of blat.bat to <a href="mailto:mail@mail.com">mail@mail.com</a> produced unexpected output (202 bytes) to STDOUT/STDERR:<br>
Blat v3.2.19 (build : Nov 18 2017 03:14:35)<br>
32-bit Windows, Full, Unicode<br>
Sending stdin.txt to <a href="mailto:mail@mail.com">mail@mail.com</a><br>
Subject: Contents of file: stdin.txt<br>
Login name is <a href="mailto:sender@mail.com">sender@mail.com</a></p>
</blockquote>
<p>Can anyone help me understand what is going on and how to fix it?</p>
<p>Thank you,</p></div>
</div>