Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Unable to Send email to manager on create account and update account task

swagat
New Contributor II
New Contributor II
Hello All,
 
We have created email templates for New AD Account Creation, Update AD Account and we are passing ${manager.email} in "To" field so that the initial credentials will be sent to user's manager. But whenever we are triggering the email it is not fetching manager email and it is sending blank format in "To" field.
We have tried to add multiple things to check which will fetch manager's email : ${manager.email}, ${assignee.email}, ${requestor.email}, ${usersManager.email} but it didn't work.
We have added this email template in target application endpoint.
Can anyone help on this please
22 REPLIES 22

NM
Honored Contributor II
Honored Contributor II

Hi @swagat does the user have manager attached to his\her profile?

swagat
New Contributor II
New Contributor II

Hi @NM ,

Yes the user have manager attached to the profile.

NM
Honored Contributor II
Honored Contributor II

@swagat try adding same variable in body and see if it resolved

Also try manager?.email ideally wouldn't create a difference still ..

SumathiSomala
All-Star
All-Star

@swagat ${manager.email} should work.

Is email triggering to user's manager?

Try with static mail address in To filed.

Regards,
Sumathi Somala

If this reply answered your question, please Accept As Solution and give Kudos.

Hi @SumathiSomala ,

Email is not triggering to user's manager. It is showing blank. We have used the same : ${manager.email}. 

Do you think this is bug in product?

@swagat  Remove all binding vatiables in T fields and  try with static mail address in To filed.

instead of ${randompassword} try ${task.password} in email body

 

Regards,
Sumathi Somala

If this reply answered your question, please Accept As Solution and give Kudos.

Please validate supported variables.

Purpose :

To get what variables are present to use in the email template.

Email Template steps :

keep Advanced HTML CSS flag is checked

Keep your email Address in TO

TO /CC/BCC & Subject - Don't use any dynamic variables

Add only below code in Email Body
${this.binding.variables.each {k,v -> println "$k = $v" + "" + "br" + ">"}}

Output : using the below expression. By putting it in the email body, it will print all variable names with values, and then accordingly, you can use it:


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

NM
Honored Contributor II
Honored Contributor II

Hi @swagat , it should be randomPassword or password

Raghu
All-Star
All-Star

@swagat  try static your email address and check it triggering or not ?

can you share endpoint email template config also?

 


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

Raghu
All-Star
All-Star

@swagat  and Team,

we also facing similar issue after upgrade 24.7v , email not triggering correct recipient (manager, vendor manager) new acount task completion , if anyone faced similar issue ?


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

swagat
New Contributor II
New Contributor II

Static email address also not working, in cc it is working fine.  In last version 23.9 it was working fine.

Can you share logs


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Attached logs, thanks.

  • Your email address in wrong in email template?
  • Make sure SMTP configuration are working 
  • "2024-08-09T10:22:43.812+00:00","ecm-worker","services.EmailerService","quartzScheduler_Worker-15-pmtp6","DEBUG","MailException in sendEmailRetry"
    "2024-08-09T10:22:44.509+00:00","ecm-worker","","null-pmtp6","","org.springframework.mail.MailSendException: Failed messages: javax.mail.SendFailedException: Invalid Addresses; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 501 5.5.2 Was expecting RCPT arg syntax of TO:<address>"
    "2024-08-09T10:22:44.509+00:00","ecm-worker","","null-pmtp6","",";"
    "2024-08-09T10:22:44.509+00:00","ecm-worker","","null-pmtp6",""," nested exception is:"
    "2024-08-09T10:22:44.509+00:00","ecm-worker","","null-pmtp6",""," com.sun.mail.smtp.SMTPAddressFailedException: 501 5.5.2 Was expecting RCPT arg syntax of TO:<address>"
    "2024-08-09T10:22:44.509+00:00","ecm-worker","","null-pmtp6","","; message exception details (1) are:"
    "2024-08-09T10:22:44.509+00:00","ecm-worker","","null-pmtp6","","Failed message 1:"
    "2024-08-09T10:22:44.509+00:00","ecm-worker","","null-pmtp6","","javax.mail.SendFailedException: Invalid Addresses; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 501 5.5.2 Was expecting RCPT arg syntax of TO:<address>"
    "2024-08-09T10:22:44.509+00:00","ecm-worker","","null-pmtp6","",";"
    "2024-08-09T10:22:44.509+00:00","ecm-worker","","null-pmtp6",""," nested exception is:"
    "2024-08-09T10:22:44.509+00:00","ecm-worker","","null-pmtp6",""," com.sun.mail.smtp.SMTPAddressFailedException: 501 5.5.2 Was expecting RCPT arg syntax of TO:<address> at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:2079) at

Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

I don't think there is a SMTP issue as for ADD Access, Remove Access, Profile creation the mail is triggering to manager but for Create Account, Update Account it is not working.

@swagat  correct it not working new version,

workaround you can use ${manager.mail}/ vendormanager.mail in ‘cc’ you manager or vendormanagers will get mails it working 


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

swagat
New Contributor II
New Contributor II

Thank you @Raghu for the workaround. I had raised a ticket for the same and will be asking for permanent fix. I will let you know once its fixed.

Raghu
All-Star
All-Star

@swagat  Please raise  the Support ticket , Saviynt team also confirmed it is bug , & applied some patch after that it working as expected.

 


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

BrandonLucas_BF
Regular Contributor III
Regular Contributor III

Issue impacting us as well. Raised ticket #2044571

 

Can confirm the CC workaround works

Yes, a patch will fix the issue else it is fixed in later version.

@BrandonLucas_BF  it working. we validated and using in production also. till path applying in prod.


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

stalluri
Valued Contributor
Valued Contributor

@BrandonLucas_BF 

This is a known issue on 24.7.0, and it was fixed in 24.7.2 
The Jira is Patch Jira CONN-19524/CONN-19520


Best Regards,
Sam Talluri
If you find this a helpful response, kindly consider selecting Accept As Solution and clicking on the kudos button.