cancel
Showing results for 
Search instead for 
Did you mean: 

Email do not work from TestExecute machine but work on our testComplete machine

Super Contributor

Re: Email do not work from TestExecute machine but work on our testComplete machine

SO how sendMail will work on TestExecute machines if it was not working on the machine where we have TestComplete and outlook office mail client is there.

Highlighted
Community Leader

Re: Email do not work from TestExecute machine but work on our testComplete machine

Hi

 

For SendMail to work, "MAPI" has to be configured on the machine sending the email,  MAPI gets configured automatically when an email client is installed and configured like Outlook.

If MAPI is not configured, SendMail can not work.

 

CDO can be used of course from any machine that has internet connection with correctly configured firewall to create the OleObject for the CDO, configure the Host name, port #, use SSL, username and password for your SMTP server.

 

If you can't send an email from the machine using CDO in a test, you can't send an email from TestComplete using CDO

 

Hope that helps

-Lino

Super Contributor

Re: Email do not work from TestExecute machine but work on our testComplete machine

@LinoTadros 

 

Thanks for the updates.

I understand the condition for SendMail. So I now I am sure - on testExecute VM machine we cannot send the email using SendMail.

 

For CDO I did not undersatnd fully. Does TestExecute VM machine need to have email client in order to Send email using CDO ? We are already sending the email from our TestComplete machine using CDO. 

 

 

 

 

 

 

 

 

 

 

Community Leader

Re: Email do not work from TestExecute machine but work on our testComplete machine

No for CDO, you do not have to have a client email installed. But the CDO COM server has to be registered on the machine.

Ask your administration team if CDO as a COM object is installed on the TextExecute Machine.

The best test to see if this will work, get a C# or VB app that uses CDO and run it on the machine, if it can send the email, TestComplete will be able to send as well.

You just have to make sure that the HOST, Port #, credentials are correct and that there is no issues with the Firewall

 

Cheers

Lino

Super Contributor

Re: Email do not work from TestExecute machine but work on our testComplete machine

@LinoTadros 

Thanks for the updates .

 

I have to open the ticket in our system to get our team work on it. 

will update it .

 

 

 

Super Contributor

Re: Email do not work from TestExecute machine but work on our testComplete machine

Our team is asking

if there is some documenation for installing CDO as com in regards to Smartbear somewhere ?  If any one can direct us on what packages to install exactly ?

 

Thanks

Nishchal

Community Leader

Re: Email do not work from TestExecute machine but work on our testComplete machine

CDO is not a SmartBear product and has nothing to do with TestComplete.

Please refer to Microsoft documentation on how to install, register and test the CDO COM installation

Once that is accomplished and "TESTED" successfully away from TestComplete, you will be able to make the script calls to instantiate the object and use it from TestComplete as a COM server using COM Automation.

 

-Lino

Super Contributor

Re: Email do not work from TestExecute machine but work on our testComplete machine

Finally we figured out what was wrong. The smtp server information.

 

The SMTP server information that I was using in my TestComplete Desktop was for internal testing only. We cannot use those SMTP server information for TestExecute VM machines. Then we got another SMTP server information which can be used on TestExecute VM.

 

Thanks

Nishchal

 

 

Community Leader

Re: Email do not work from TestExecute machine but work on our testComplete machine

Excellent, I am glad you figured it out

Have a great day

-Lino

New Here?
Join us and watch the welcome video:
Top Kudoed Authors