It is possible to create a custom notification method that allows a different from address in notifications that can be used in a tenanted environment.
I need diferent senders for my notifications according to the tenant of user.
As mentioned by Chi Chen, in first step,you will need to create a new notification method for each of your tenant ehere you can overwrite the from address using the -F and -T tags like below as an example:
pdm_mail -F "myemail@ mytenant.com" -T "myemail@ mytenant.com"
the in step 2 you will need to update each contacts of the corresponding tenant to use this new method.
Hope this help.
Paulo, I don't think you can configure. What you could do is to customize the email method so that the custom script
check the tenant and use different "from" email address base on the tenant value. You can take a look at
Create a Notification Method - CA Service Management - 14.1 - CA Technologies Documentation
I tryed to create a new notification method with the -F parameter but it not worked
Do you mean your external script that uses pdm_mail with -F does not work?
In that case, do you mind post the script here?
The "from" address in a notification is controlled by the NX.env variable setting "NX_MAIL_FROM_ADDRESS". This is a global setting that would require custom coding to override.
There is an idea in place in Communities which you could review and upvote for consideration:
mail_from_address option per tenant
Did the information provided by jmayer help?
If so, please mark his answer as "correct" so that this thread can be marked as completed.
Retrieving data ...