We are running Email from scripts using CDO . It work on our testComplete machine which is my local machine. But when we run on remote VM machines which has TestExecute , it failed to send the email .
Any idea what is causing this ?
The only message I can see in the Testlog on TestExecute UI - Email cannot be sent
Can you manually send an email from the TestExecute machine to the required mailbox? Perhaps there's no connection.
Ok, here is the point.
Does TestExecute need to have outlook mail client installed on it ?
My TestComplete machine has outlook email client which we use in our organization to send and receive the emails . But on VM machines we never use any kind of mail software to send and receiving the mails.
TestExecute works exactly like TestComplete except without the user interface. If TestExecute is trying to send Outlook mail and it can't find Outlook, then it will fail.
Ok Those VM machines do not have outlook office email client . That mean we cannot have the email sent from testExecute.
How other people are running the email from script if the script is running on TestExecute ?
There's the SendMail function
Sendmail was not working in our system when when we were testing email from script. So we use CDO .