Ask a Question

SendMail not Woring

SOLVED
mengbinhao
Occasional Contributor

SendMail not Woring

Hi There,

  I use buildin SendMail to send email after all test items finished, below is my very simple code example: (toAddress / fromHost / fromAddress are right and valid)

  

 

const toAddress = "guest2@ourunited.com"
const fromHost = "smtp.ourunited.com"
const fromName = "guest1"
const fromAddress = "guest1@ourunited.com"
const subject = "test sending email"
const body = "test email body"
  
if (SendMail(toAddress, fromHost, fromName, fromAddress, subject, body)) {
  Log.Message("Successfully!")
} else {
  Log.Message("Fail!")
}

 

 It threw error after test items were executed, report as below:

 无标题.png

 Anything am I incorrect? Please provide some useful help to me, thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
mengbinhao
Occasional Contributor

Re: SendMail not Woring

Use fake fromAddress to resolve this issue

View solution in original post

2 REPLIES 2
mengbinhao
Occasional Contributor

Re: SendMail not Woring

Any thought on this?  the error information is useless for me

mengbinhao
Occasional Contributor

Re: SendMail not Woring

Use fake fromAddress to resolve this issue

View solution in original post

cancel
Showing results for 
Search instead for 
Did you mean: