sending email to multiple users using power shell.
hi experts, not able send mail below code. $body = convertto-html -head $head -body "$reportoutput" string[]]$recipient =(" mail_id_1@email.com","mail_id_2@email.com ") $smtpserver = "smtp server name" $msg = new-object net.mail.mailmessage $smtp = new-object net.mail.smtpclient($smtpserver) $msg.from = " from@email.com " $msg.to.add($recipient) $msg.subject = "email message" $msg.isbodyhtml = 1 $msg.body = $body $smtp.send($msg) please find below error exception calling "add" "1" argument(s): "the specified string not in form required e-mail address." @ z:\personal\powershell\script\remote.ps1:20 char:12 + $msg.to.add <<<< ($recipient) + categoryinfo : notspecified: (:) [], methodinvocationexception + fullyqualifiederrorid : dotnetmet...