Skip to main content
New Participant
Jul 18, 2024 12:19 PM UTC
Question

No valid recipients resolved

Hi,

I have two environments (one is hosted, other on premise). In hosted environment Send Email Smart Service works without problems, while same code in on premise installation doesn`t.
We`re using the service to send an email to the person who started a request.

The configuration is following:

= toemailrecipient(user(rule!HR_GetUsernameByEmployeeId(pv!recordsUpdated['recordType!HR Absence Request.fields.employeeId'])[1],"email"))

Do you know what could be the reason for this to work in one setting and not in the other?

Kind regards,

Nejc

8 replies

davidj137213
Brainy
Jul 18, 2024 9:14 PM UTC

Could be related with the configuration of the SMTP server? iIs the same in both installations?

varuntejg243705
Inspiring
Jul 19, 2024 4:37 AM UTC

Hi [mention:8a282c2e930a4ef3a11826860141e8f7:e9ed411860ed4f2ba0265705b8793d05] ,

Just try to store the same email logic in a text variable using script task, check whether the value is correct.

if it is storing in a variable, then definitely that's your SMTP issue.

Usually Appian has its own SMTP server configured in cloud, so it is optimized to use in PMs.

nejcs6026Author
New Participant
Jul 19, 2024 9:21 AM UTC

thank you, both!

I`ve set new text variable and script task, as Varun suggested, now I`m waiting for a request. [emoticon:c4563cd7d5574777a71c318021cbbcc8]

Will check with sys admin for SMTP configurationand share findings later.

thank you for now.

Br N

varuntejg243705
Inspiring
Jul 19, 2024 9:29 AM UTC

Please let us know if the issue get solved, it helps others to find the solution fast.