Forum Discussion
- rraghvaniChampion Level 3
Do you have an email client on your machine?
- pavithirasOccasional Contributor
Yes, I have outlook in my machine and made it as default too. rraghvani
- nastesterRegular Contributor
I had this issue too and never figured it out. I ended up just writing a small script to send an email with the log.
function PackResults() { var WorkDir, FileName; WorkDir = Project.ConfigPath + "Log\\ExportedResults\\"; FileName = WorkDir + "SmokeTest_TestResults.mht"; Log.SaveResultsAs(FileName, 2); Log.Message("Results saved"); } function EmailResults() { if (SendMail(Project.Variables.emails, "SMTP SERVER", "NAME", "EMAIL ADDRESS", "Smoke Test Results", "Test results attached", Project.ConfigPath + "Log\\ExportedResults\\SmokeTest_TestResults.mht")) Log.Message("Mail was sent"); else Log.Warning("Mail was not sent"); }
- pavithirasOccasional Contributor
Hi,
Do I have to configure anything in my Email client to allow/communicate with SMTP Server for the script you provided? nastester
Thank you.- nastesterRegular Contributor
No I don't think so. I just put the SMTP server in the script and it worked.
https://support.smartbear.com/testcomplete/docs/scripting/sending-email-from-scripts.html
- rraghvaniChampion Level 3
Doesn't seem to be working. I suggest you open a ticket via TestComplete: New Support Request
Related Content
- 5 years ago
- 3 years ago
Recent Discussions
- 2 hours ago
- 20 hours ago