Ravikaanth
2 years agoContributor
Unable to send an email through SendMail() using JavaScript
Hi Team,
I am facing issues while sending a file through email in TestComplete. Please check the below error,
"The files you want to attach to the message do not exist."
Please check the below code,
if (BuiltIn.SendMail("firoz.khan@squaredatalabs.com", "smtp.hostinger.com", "Ravikaanth N S", "ravikaanth.ns@squaredatalabs.com", "Test Report", "Please find the attached report", "C:\\Users\\ravikaanth.ns\\Desktop\\TestDoc.txt", 587, true))
{
Log.Message("Mail was sent");
}
else
{
Log.Warning("Mail was not sent");
}