$to = "helpdesk@test.com" $Context.SendMail($to, $subject, $NULL, $html)

How do I add more than one mail recipient? I've tried unsuccessfully: $to = "helpdesk@test.com, test@test.com"

but this results in an error:

Exception calling "SendMail" with "4" argument(s): "Unexpected token at offset 16" Stack trace: at , : line 76 (which is the $to of SendMail)

It works fine for just one mail

by (80 points)
by (16.7k points)
0

Hello,

For troubleshooting purposes, please, post here or send us at support@adaxes.com a screenshot of the Multi-server environment dialog. The dialog displays how many Adaxes services you have and what their versions are. For information on how to view it, see https://www.adaxes.com/help/MultiServerEnvironment.

by (80 points)
0

I think there maybe some confusion, we are not requesting help with multiserver environments. We are asking how to add several recipients to a Adaxes powershell command to send mail. The way identified by Adaxes is use the following format: $Context.SendMail("helpdesk@test.com, test@test.com", $subject, $NULL, $html) however this does not work - resulting in the above error. Any help on this powershell command would appreciated Thanks

by (16.7k points)
0

Hello,

The way multiple addresses are specified is correct for the latest version of Adaxes. For us to be more specific, we need to know your Adaxes service version and how many services you have. The Multi-server environment dialog displays the required information. Please, provide us with a screenshot of the dialog to continue troubleshooting.

Please log in or register to answer this question.

Related questions

Hello Support, We export all accounts and the associated data for other programmes, which then import this data. This works without any problems, but the report is generated in ... for each user because the reports are saved under Users'? Thanks a lot!

asked Dec 20, 2024 by DRiVSSi (360 points)
0 votes
1 answer

Hello, I have a request that is to give an option to run a task that will check a user's litigation hold status in Exchange Online and report back the details for ... users, and return the hold status properties such as hold date and notes? Thank you.

asked Aug 26 by GronTron (390 points)
0 votes
1 answer

Hello I am trying to export data via a script in a Business Rule for multiple users when their password is reset in the Web console, and I am having the following ... "%mail%" 'P' = "%unicodePwd%" } } $Data | Export-Csv -Path $csvFilePath -NoTypeInformation

asked Oct 10, 2025 by apruitt (560 points)
0 votes
1 answer

Hello Team, I'm writing regarding a functionality change in the directory picker field that's significantly impacting our workflow efficiency. In the previous version, ... 's efficiency when managing large group memberships. Thank you for your consideration.

asked Jun 17, 2025 by wintec01 (2.6k points)
0 votes
0 answers

I am trying to make a custom report that is basically the "Members of Groups" default report but instead of selecting Directory Objects, I want to select groups. The Members of ... will not work in Adaxes 2023 and later. I am running 2023.2 -- Suggestions?

asked Aug 13, 2024 by AvenuesRecovery (110 points)
0 votes
1 answer