Unable to send email due to : Invalid Addresses
Unable to send Email when using the SendEmailNotification activity.
Caught unhandled exception : Unable to send email due to : Invalid Addresses
Steps to Reproduce
- Configure an Email account set up which uses the Global Resource settings for the email address and user ID in the Sender details. The Test connectivity must be good.
- Configure an activity in the PostProcessing of a case.
- Call the SendEmailNotification activity in the activity that is configured in the PostProcessing of a case.
- Run the case.
In this case, the pyNotifyAccountName parameter is the assigned value of the Accountname before the SendEmailNotification is invoked.
The SendEmailNotification activity expects all the parameters which are Required to send an email on the Parameter page with the resolved values.
However, there is extra handling for the pynotifyAccountName paramater. If this parameter has a value, then all the Parameter page values will be overwritten with the actual email account details (it can have values with GRS syntax. Additionally, in this case, the GRS will not be resolved or dereferenced).
When an account name is provided, there is no handling involved to resolve values with GRS syntax in the SendEmailNotification activity. If this database Open has values with GRS syntax, the values are not resolved in this activity. Instead, the values are sent directly to the sendEmail engine API, where it fails.
Perform the following local-change:
Set pyNotifyAccountName to empty prior to invoking the SendEmailNotification activity.
0% found this useful