Answered by:
SharePoint 2016 - workflow is not sending emails to SharePoint users/ groups

-
Hi All,
I have a workflow which is performing all actions. The issue is - its not sending email notification when an user is selected [SharePoint 2010 designer workflow]
1) sends email to hard code user email ID
2) can not send email if its createdby
3) can not send email if user is selected using 'People/Groups from SharePoint site..'
4) can not send email if SharePoint group is selected using 'People/Groups from SharePoint site..'Other details
1) SMTP server has been configured and tested successfully
2) receiving alert emails
3) The workflow gets "Completed" status even though I didn't actually receive a mailAny thoughts?Thanks,
Sai
Sai
- Edited by Saikaka Monday, April 17, 2017 1:09 AM
Question
Answers
-
Hi All,
Thanks for your help. My issue is resolved. It was Web App User Profile issue. Ran PS - stsadm -o sync which fixed the issue.
Thanks for your support!
-Sai
Sai
All replies
-
Hi Sai,
Would you ensure following areas
- Check Outgoing email configuration are configure properly or not.
- Network security token may prevent the process of workflow. Did you find anything related to this event viewer or SP logs.
- User or email address have enough privileges to update list item or generating emails.
- Try to include all steps in impersonation actions.
- Sometimes, its cause email body also. Remove Anchor tags and try if anything is there.
- Check task Properties and make sure that, "Senddefaulttasknotification" is yes.
Check this url. It may helps you.
----------------------------------------------------------------------------
Thanks
Lalith
----------------------------------------
Please mark as Answer, if this post solves your issue.
-
-
Hi Saikaka,
Since you can sent alerts on SharePoint online, it indicates that the outgoing email is working in SharePoint 2016.
Can you send email to SharePoint user/SharePoint group directly? Make sure the user/group has valid email address.
Please add the actions "log to history" after action "send mail" to check if the send mail action is performed.
And you can also add "pause for a duration" before the "send mail" action, see if it could help.
Best Regard,
Lisa Chen
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com -
Hi All,
Thanks for inputs. Yes I have all settings correct as mentioned.
Its SP2010 WF.I am able to update a field in the list, and send email to hard code email ID.
When I add SharePoint User/ Group - no email is sent
Workflow status moved to completed.
No information in ULS logs
Have included pause duration for testing - no positive results
no hyper links included in body / subject line-SaiSai
-
its really weird.
Have you tested workflow starting manually by adding SP users? Have you checked SPAM or deleted mail box?
Did you check event viewers in all WFE's? Because if you cant find ULS logs, then we may get in event viewers.
Finally, if possible, delete existing one and try to create new one. ( This is not recommend option. But trying our luck).
----------------------------------------------------------------------------
Thanks
Lalith
----------------------------------------
Please mark as Answer, if this post solves your issue.
- Edited by kirank.gutthi Tuesday, April 18, 2017 7:25 PM
-
Hi All,
when I run this thru PS, it displays true and I am receiving email. So my outgoing-email settings are correct. Tested with new webapp, to my surprise I am able to send email using created by. Cross checked 'site collection features' and 'manage site features'. This particular webapp contains 11 site collections with independent database. All these databases are upgraded from SP2013 - SP2016. During development migration - I did not face this issue. Its when I am performing production migration - I am facing this issue. Its same server and same webapp. Just content database have been restored from fresh backup files.
Test email thru PS:
$email = "test@test.com"
$subject = "Test subject"
$body = "Test body"
$site = New-Object Microsoft.SharePoint.SPSite "http://test1:89/"
$web = $site.OpenWeb()
[Microsoft.SharePoint.Utilities.SPUtility]::SendEmail($web,0,0,$email,$subject,$body)workflow history
Thanks,
Sai
Sai
- Edited by Saikaka Tuesday, April 18, 2017 8:03 PM
-
HI Team,
One quick review with my workflow issue:
User email ID is not displaying for users for one web application which was migrated from SP2013 - SP2016.
If I create new web application - I can view user email ID.
Server: User Profile Service application, when I select Manage User Profiles and search for a user - email ID is displayed.
What's going wrong.
Thanks,
Sai
Sai
-
Check if this bug is effecting your ability of email. https://thesharepointfarm.com/2017/03/sharepoint-server-2016-outgoing-email-exchange-receive-connectors/'
In upcoming CU it will be fixed, dont know when.
Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -Waqas Sarwar(MVP) Blog: http://krossfarm.com
-
Hi All,
Thanks for your help. My issue is resolved. It was Web App User Profile issue. Ran PS - stsadm -o sync which fixed the issue.
Thanks for your support!
-Sai
Sai
-
-