Advertisements

autoit _INetSmtpMail Mail failed with error code 50, solution

With exchange 2003 at least

From here

https://www.autoitscript.com/forum/topic/66691-_inetsmtpmail-mail-failed-with-error-code-50/

You need to use a -1 for the optional parameter

$sFirst [optional] string sent before helo for the smtp server connection (by default {SPACE}). To not send any character this parameter must equal -1, some SMTP server required it.

From https://www.autoitscript.com/autoit3/files/beta/autoit/docs/libfunctions/_INetSmtpMail.htm

So it ends up being

Local $iResponse = _INetSmtpMail($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, $as_Body,”,-1)

Advertisements

Automating Software Testing Adage ERP, Coolearth Warehouse Management, VeggieTests

So I have been working on an easy VB.net app for submitting QC tests to adage through the TEE interface. As mentioned in this post https://michaelellerbeck.com/2008/04/03/how-to-setup-adage-to-allow-qc_testresults/

Well I wanted to setup an automated test that would basically go from a shop order released to production (In Adage ERP, the lot creation (In Coolearth WMS), and then some sample tests in VeggieTests.

I scripted it in AutoIt, for the windows apps this works great but for the telnet apps it just has to guess. I have started investigating using Expect for the telnet WMS testing.

This is a quick little flash file of one automated run through.

http://sites.google.com/site/mellerbeck/Home/veggieTests.swf?attredirects=0