Forum Discussion
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.
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
- LinoTadros5 years agoCommunity Hero
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
- LinoTadros5 years agoCommunity Hero
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
- nisgupta5 years agoValued Contributor
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.
- nisgupta5 years agoValued Contributor
Thanks for the updates .
I have to open the ticket in our system to get our team work on it.
will update it .
- nisgupta5 years agoValued Contributor
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
- nisgupta5 years agoValued Contributor
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
- LinoTadros5 years agoCommunity Hero
Excellent, I am glad you figured it out
Have a great day
-Lino
Related Content
Recent Discussions
- 4 hours agojstaehlin
- 21 hours agoAivanitskiy