Hello,
Unfortunately, there is no possibility to specify the From address in the Send email notification action. However, we have the feature in our roadmap: https://www.adaxes.com/info_roadmap.htm.
As a workaround, you can use the below PowerShell script to send the notification and specify %adm-InitiatorEmail% in the From field. In the script:
- $to - Specifies the recipient's e-mail address.
- $subject - Specifies the subject of the email.
- $textBody - Specifies the body of the email.
- $from - Specifies the address from which the email will be sent.
# Bind to the 'ServiceSettings' container
$wellknownContainerPath = $Context.GetWellKnownContainerPath("ServiceSettings")
$serviceSettings = $Context.BindToObject($wellknownContainerPath)
# Email settings
$to = "%mail%" # TODO: modify me
$subject = "My Subject" # TODO: modify me
$textBody = "My Message" # TODO: modify me
$from = "%adm-InitiatorEmail%" # TODO: modify me
# Send mail
$serviceSettings.MailSettings.SendMail($to, $subject, $textBody, $Null, $from, $Null, $Null)