ContributionsMost RecentMost LikesSolutionsRe: Failing to send an email through TestComplete Yes tried without attaching a file I getting the same socket error Error: JavaScript runtime error. Socket Error # 10054 Connection reset by peer. Re: Failing to send an email through TestComplete Thanks for your reply, I am using my system file path. For example I mentioned like file path Actual path is - "E:\\MBTEST\\MBAutomation\\Report.html" 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. 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"); }