Trying to send mail with sendgrid.But getting erro,Any help please

Exception calling “Send” with “1” argument(s): “Failure sending mail.”

At line:19 char:15

  • $smtp.send <<<< ($message);
    
  • CategoryInfo : NotSpecified: (:slight_smile: [], MethodInvocationException

  • FullyQualifiedErrorId : DotNetMethodException

 

Sorry, that’s really a question you’d want to take to SendGrid. It’s not a PowerShell problem per se.