Forum Discussion
My first suggestion, it appears that you are not sending the appropriate parameters to your sendEmail() function - which accepts 5 parameters, and you only pass in 4:
function sendMyTestResults()
{
sendEmail(1- "myemail@gmail.com", 2- "julie@myemail.com", 3- "Test Results for today", 4- "No test result today");
}
function sendEmail(1- mFrom, 2- mTo, 3- mSubject, 4- mBody, 5- mAttach)
{
// send email stuff
}
Double check your code and how it compares to the script examples from TestComplete [here].
One easy way to quickly test SMTP communications on your machine is to open CMD and type
telnet smtp.gmail.com 465, and if you get into telnet you have a connection.
If you want to test that you can actually send mail through this port and get some better logging than the generic error your received, use this telnet guide from Microsoft ([here] - step 3).
- juliemorris3 years agoOccasional Contributor
Thanks Kitt for your suggestions.
It turns out that this project uses Javascript vs the other projects using JScript.
I now have two send functions dependent on the project in use.
Related Content
Recent Discussions
- 3 hours ago
- 18 hours ago