Ravikaanth0606
2 years agoNew Contributor
Failing to send an email through TestComplete
Hi team,
I trying to send a report through email but I am getting socket error. Please check the below code for your reference. Your ideas are appreciated. Thanks in advance.
Error:
JavaScript runtime error.
Socket Error # 10054
Connection reset by peer.
Socket Error # 10054
Connection reset by peer.
Code:
if(SendMail("receivermailid@squaredatalabs.com","smtp.hostinger.com","sendername","sendermailid@squaredatalabs.com","Test Report","Please find the attached report","file path"))
{
Log.Message("Mail was sent");
}
else
{
Log.Warning("Mail was not sent");
}