Hi Tanya,
I'm using Run Script Routine at the end of my keyword test to execute the SendMail function as detailed in
http://support.smartbear.com/viewarticle/26637/.
I'm testing the code emailing the log from one of my email addresses to another but I cannot get SendMail to execute. It hangs on the first character of the second line of code. The log entry says simply "SendMail" and the second line of the following code is highlighted in red:
Sub EmailLog()
If SendMail("avalidemailaddress@mycompany.com", "SmartBear-Win7", "Automation Box", "another validemailaddress@mycompany.com", "API Regression Results", "API Regression Results are attached", "C:\Users\CareBear\Documents\API\Results\API_RegressionResults.mht")
Then
Log.Message "Mail was sent"
Else
Log.Warning "Mail was not sent"
End If
End Sub
Additional Information reads:
Socket Error # 10061
Connection refused.
Any ideas why the connection is refused?
Being able to write some simple code and call Run Script Routine to run it in a keyword test is a brilliant idea. I just need to make it work!
Thanks -