LOULOU Posted July 16, 2006 Share Posted July 16, 2006 Is anyone Know the synthax for launching Balt dll My example tha's doesn(t works$teststring="-html ""<B>Bonjour<B>"" -alttext ""ba"" -to ""toto@free.fr"" -f ""toto@9online.fr"" -s ""test"" -x ""X-Header-Test: Can Blat do it? Yes it Can"""Msgbox(0,"",DllCall("blat.dll","int","SendBlat","str",$teststring)) Link to comment Share on other sites More sharing options...
spyrorocks Posted July 16, 2006 Share Posted July 16, 2006 whats blat? [center] My Projects: Online AutoIt Compiler - AutoForum - AutoGuestbook - AutoIt Web-based Auto Installer - Pure AutoIt Zipping Functions - ConfuseGen - MindReader - P2PChat[/center] Link to comment Share on other sites More sharing options...
LOULOU Posted July 16, 2006 Author Share Posted July 16, 2006 Blat is an smtp mailer Link to comment Share on other sites More sharing options...
Emperor Posted July 16, 2006 Share Posted July 16, 2006 The name of the function is actually Send() and not SendBlat(). Link to comment Share on other sites More sharing options...
LOULOU Posted July 16, 2006 Author Share Posted July 16, 2006 The name of the function is actually Send() and not SendBlat().Thanks I try like this Msgbox(0,"",DllCall("blat.dll","int","Send","str",$teststring))and the function return me a blank maybe one parameter is not good in call function ? Link to comment Share on other sites More sharing options...
Emperor Posted July 16, 2006 Share Posted July 16, 2006 (edited) Thanks I try like this Msgbox(0,"",DllCall("blat.dll","int","Send","str",$teststring)) and the function return me a blank maybe one parameter is not good in call function ?You might get some results if you set up a variable then check the first element of that. $Result = DllCall(...) MsgBox(0, "", $Result[0]) Edited July 16, 2006 by Emperor Link to comment Share on other sites More sharing options...
Zedna Posted July 17, 2006 Share Posted July 17, 2006 Instead of $teststring="-html ""<B>Bonjour<B>"" -alttext ""ba"" -to ""toto@free.fr"" -f ""toto@9online.fr"" -s ""test"" -x ""X-Header-Test: Can Blat do it? Yes it Can"""oÝ÷ ÚÚòjëh×6$teststring='-html "<B>Bonjour<B>" -alttext "ba" -to "toto@free.fr" -f "toto@9online.fr" -s "test" -x "X-Header-Test: Can Blat do it? Yes it Can"' Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Zedna Posted July 17, 2006 Share Posted July 17, 2006 Is anyone Know the synthax for launching Balt dll My example tha's doesn(t works Or you can use Blat.exe instead of Blat.dll I used it in one my project, here are examples: Run('Blat.exe ' & $err_name & ' -subject "Action - ' & $error_text & '" -to ' & $ini_EmailTo & ' -server ' & $ini_SMTP & ' -attach .\' & $log_name,'',@SW_HIDE)oÝ÷ Ù«¢+ÙIÕ¸ Ìäí ±Ð¹áÌäìµÀìÀÌØíÉÉ}¹µµÀìÌäìµÍÕ©ÐÅÕ½ÐíÑ¥½¸´¥¹¥Í¡¸9յȽÉɽÉÌôÌäìµÀìÀÌØí¹Õµ}ÉȵÀìÌäìÅÕ½ÐìµÑ¼ÌäìµÀìÀÌØí¥¹¥}µ¥±Q¼µÀìÌäìµÍÉÙÈÌäìµÀìÀÌØí¥¹¥}M5Q@µÀìÌäìµÑÑ ¸ÀäÈìÌäìµÀìÀÌØí±½}¹µ°ÌäìÌäì±M]}!% Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Zedna Posted July 17, 2006 Share Posted July 17, 2006 Only for your info: On WINXP is elegant method for sending emails by system DLL via COM object CDO.Message: Func _SendEmail($e_From, $e_To, $e_Cc, $e_Bcc, $e_Subject, $e_Text) $objMessage = ObjCreate ("CDO.Message") If @error Then Return $objMessage.BodyPart.ContentTransferEncoding = "8bit" $objMessage.BodyPart.CharSet = "windows-1250" $objMessage.From = $e_From $objMessage.To = $e_To $objMessage.Cc = $e_Cc $objMessage.Bcc = $e_Bcc $objMessage.Subject = $e_Subject $objMessage.TextBody = $e_Text ;~ $objMessage.AddAttachment(@ScriptDir & "\Test.txt") $objMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 $objMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = $ini_smtp_server $objMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = $ini_smtp_port $objMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60 $objMessage.Configuration.Fields.Update $objMessage.Send EndFunc Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Nomad Posted July 17, 2006 Share Posted July 17, 2006 Is anyone Know the synthax for launching Balt dll My example tha's doesn(t works Always check the error codes. $teststring="-html ""<B>Bonjour<B>"" -alttext ""ba"" -to ""toto@free.fr"" -f ""toto@9online.fr"" -s ""test"" -x ""X-Header-Test: Can Blat do it? Yes it Can""" $Return = DllCall("blat.dll","int","SendBlat","str",$teststring) If @Error Then Msgbox(0,"ERROR", @Error) Else Msgbox(0,"", $Return) EndIf If you had done that, and it's the function name that is wrong, you would've gotten an error code of 3. Which as stated in the helpfile..""function" not found in the DLL file.". That would've told you that the function name was incorrect. Nomad Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now