LastErrorMessage property

Read-only. This property contains the error message string reported by Smtp server.

If some error occured during sending email message, the Send method returns FALSE and the LastErrorMessage property is set.

Example

mail.From = "myemail@email.address.com"
mail.To = "john@email.address.com"
mail.Subject = "The confirmation message"
mail.AddText "Text"
if not mail.Send() then
  Wscript.echo "Error: " & mail.LastErrorMessage
end if