For a script i want to send an email with a attachement to different kind of users.
I already have the following:
$Sender = $emailaddress $SMTP = "outlook.office365.com" $Recipients = @("[firstname Lastname] ", "[firstname Lastname] ", "[firstname Lastname] ") $Subject = $Emailsubject $Body = $EmailMessage $Attachment = new-object Net.Mail.Attachment($fileLocation)
Is it possible for recipient box i can create the smae i have for the $emailaddress
$Emailaddress = [microsoft.visualbasic.interaction]::inputbox('give up Email address','Emailaddress','...@campofriofg.com')
But then that it is possible to imput multiple emailddresses ?