0 votes

$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 <ScriptBlock>, <No file>: line 76 (which is the $to of SendMail)

It works fine for just one mail

by (80 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.

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

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

0 votes
1 answer

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 6 days ago by DRiVSSi (320 points)
0 votes
1 answer

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 by AvenuesRecovery (20 points)
0 votes
1 answer

Hi Everyone We have 3 Adaxes services set up around the globe and followed the MS SQL replication how-to (https://www.adaxes.com/help/EnableDatabaseReplication/) to then ... use their local SQL server and make use of the SQL replication setup? Thanks, Felix

asked Jul 24 by felix (150 points)
0 votes
1 answer

I can add a security group as the users "manager" but I can't query members from that group I only have the option to query for manager "is" and not "includes". Using ... as a users manager, or is there a better way of adding multiple managers to a user?

asked Mar 13 by dominik.stawny (280 points)
0 votes
1 answer

I have tried it using the Custom Commands Action "Add the user to a group", which only allows me to add the user to one group at a time, and can't use the multiple DNs that the ... I can't get it to work. Could you assist me in finding the best way to do this?

asked Jan 16 by dominik.stawny (280 points)
3,589 questions
3,278 answers
8,303 comments
548,132 users