2013-03-14 19:20:59 UTC
I have downloaded the last version of Blat a few days ago. When I'm using it with batch file, everything works ok.
However I need to pass command to blat from AutoHotkey_L script. I have found appropriate script on the AutoHotkey forum here: http://www.autohotkey.com/board/topic/9845-blat-dll-usage/page-3?hl=mail%20sending
The script is marked as tested with blat.dll version 2.6.2. However, this does not work with 3.1.1: dll returns codes 1 or 12 as the best results. Because there is no debug information for dll, its not easy determine why. Could you please help me with passing data to the blat.dll correctly?
Thanks in advance for any support.
Here is the AHK code:
; setting variables:
Text = %A_ScriptDir%\Test.txt
subj=-s "Test Blat"
x=-x "X-Header-Test: Can Blat do it? Yes it Can!"
; Joining variables to Blat_String:
Blat_String = %Text% -to %eMail% -f %user% -u %user% %pass% %subj% %server% %x%
; Calling Blat.dll:
msgbox %Blat_DLL% ; 0 => OK
Here is the content of Blat_String before passing to dll:
C:\Documents and Settings\Apsauga\Desktop\blat311\full\Testas.txt -to ***@yandex.ru -f ***@yandex.ru -u ***@yandex.ru -pw somepassword -s "Test Blat" -server smtp.yandex.ru:587 -x "X-Header-Test: Can Blat do it? Yes it Can!"
blat.dll returned code 12 with this. Could you please write, what exactly should be content of Blat_String in this case?