Answered by:
Sharepoint incoming email doesnot process workflow emails

Question
-
HI
I have set up incoming email for my sharepoint list and is working fine when I send my mails from outlook.
Now I am trying to send emails through WF from another list to this email ID.It comes to the drop folder but doesn't get processed by timer job.
We are doing this so that we can keep a track of all the emails.
Any idea why is it happening
Wednesday, March 18, 2015 11:06 AM
Answers
-
Thanks everyone
I have found out the root cause of the issue.
http://support.microsoft.com/en-us/kb/970818
If you read the above kb article it says that incoming email will not process emails
This is sharepoint behaviour which I was not aware of but ya at the end I figured it out.
While searching for this I found out some workaround by creating vb script and removing that from mail
You can see the below thread
https://social.technet.microsoft.com/Forums/en-US/b4322c6a-52de-4760-ade9-b410cc0db9ff/sharepoint-cannot-receive-email-from-sharepoint
The user has mentioned some link which will redirect you for script.If anyone wants to sue they can use it
- Marked as answer by agarwal Wednesday, March 25, 2015 11:26 AM
Wednesday, March 25, 2015 11:25 AM
All replies
-
Hi Agarwal,
I've went through your issues.
Please go through the reference link given below.
Workflows on Incoming Emails in SharePoint Documents Library
Indul Hassan
Microsoft Community Contributor
http://www.indulhassan.com
You Snooze.. You Lose !!- Proposed as answer by Aryav Pandey Wednesday, March 18, 2015 12:50 PM
Wednesday, March 18, 2015 12:00 PM -
Hi Hassan
I went through the link and it is about the workflow running on the incoming email items.
This is not the scenario here.I have a List A in site collection A whose incoming email is set.While there are some users who has created workflows in some other sitecollections like Site B in .This workflow send mails to the list A in sitecollection A. Workflow mail reach the drop folder of sharepoint. Now the next step where it should be parsed by timer job is not happening. Sharepoint timer job doesn't recognise those emails and keep in the folder as it is.
The issue is why timer job doesn't parse those email from workflow and successfully parse emails when I send form outlook.
Wednesday, March 18, 2015 12:54 PM -
Hi,
If you check in ULS log, could you find message like:
"Workflow recursion prevention attaching property Microsoft.SharePoint.ActivationProperties.IsEventFromWorkflow to event ItemAdded with value"
Please check the article below to see if that mathes your situation:
Rebecca Tu
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.- Proposed as answer by Shaheena Jafar Thursday, March 19, 2015 8:44 AM
- Edited by Rebecca Tu Monday, March 23, 2015 7:12 AM
- Unproposed as answer by Rebecca Tu Monday, March 23, 2015 7:12 AM
Thursday, March 19, 2015 7:52 AM -
Hi Rebecca
I am not getting any such error in logs and I think there is confusion in the understanding.I don't want to trigger the workflow based on the incoming email item.
I just want sharepoint incoming timer job to process the emails sent by the workflow which is not happening
We have configured sharepoint incoming email in such a way that it picks up from drop folder.The mail from workflow comes to that folder.Now it is sharepoint incoming timer job which is not processing this mail.It doesn't create a new item in the list.The mail there sits in folder.
Secondly I have checked out the logs and we don't get any error in logs.At the end I get this
"The Incoming E-Mail service has completed a batch. The elapsed time was 00:00:00.0156250. The service processed 6 message(s) in total".
No error why it left that item
Friday, March 20, 2015 6:18 AM -
Hi,
I'd confirm with that you need to use workflow to send email to SharePoint list\library in SharePoint 2013. However, the email stuck in Drop folder.
We are currently looking into this issue and will give you an update as soon as possible.
Thank you for your understanding and support.
Regards,
Rebecca Tu
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.
- Edited by Rebecca Tu Tuesday, March 24, 2015 1:31 AM
Monday, March 23, 2015 7:00 AM -
HI Rebecca
I couldn't get your point.Can you please explain more
Monday, March 23, 2015 9:04 AM -
Hi,
This is high level overview of how incoming email works:
1.Exchange routes the email to the SMTP Server (Incoming E-mail settings). Email is delivered to drop folder.
2.SharePoint timer job Microsoft SharePoint Foundation Incoming E-Mail, monitors this folder and processes mails that are delivered to this folder.
This timer job is responsible for creating items in your libraries and removing processed mails from the Drop folder.
Once the email appears in drop folder, we can eliminate the issue on Exchange side and narrow the issue down to SharePoint timer job.
There might be two possible reasons with timer job:
1.Timer job can recognize the email, but it has no permission to add it to the library.
In this scenario, timer job works on behalf of the workflow permission which runs in another site collection. To clarify this, please configure the incoming email security for the library, and allow emails from anywhere.
2.Timer job cannot recognize the email object.
In this scenario, the To address for email sent from a workflow might not be a normal format. We could troubleshoot it by programming implement the SPEmailEventReceiver class, thus, the issue can be debugged in code. Here’s an example of coding for SPEmailEventReceiver class: https://pholpar.wordpress.com/2010/01/13/creating-a-simple-email-receiver-for-a-document-library/
Regards,
Rebecca Tu
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.
- Edited by Rebecca Tu Wednesday, March 25, 2015 2:18 AM
Tuesday, March 24, 2015 5:28 AM -
HI
I agree with you and we can narrow down the issue to incoming email timer job.
Timer job has permission to add in the library because when I send the mail from outlook or gmail then the item gets created in the library.
The issue arises when I send mail through workflow.
In both the cases receiver email is same.Here sender address is different.Through outlook I send using my account but through workflow it show sender as default account.
Will that cause an issue
Secondly when I compared both the eml files then I see the differenece in content type .
Mails from outlook/gmail contains "contenttype:multipart/alternative" while from WF it is "Content-Type: text/html; charset="utf-8""
Will this impact ?
Tuesday, March 24, 2015 6:05 AM -
Thanks everyone
I have found out the root cause of the issue.
http://support.microsoft.com/en-us/kb/970818
If you read the above kb article it says that incoming email will not process emails
This is sharepoint behaviour which I was not aware of but ya at the end I figured it out.
While searching for this I found out some workaround by creating vb script and removing that from mail
You can see the below thread
https://social.technet.microsoft.com/Forums/en-US/b4322c6a-52de-4760-ade9-b410cc0db9ff/sharepoint-cannot-receive-email-from-sharepoint
The user has mentioned some link which will redirect you for script.If anyone wants to sue they can use it
- Marked as answer by agarwal Wednesday, March 25, 2015 11:26 AM
Wednesday, March 25, 2015 11:25 AM -
Hi ,
Could you please provide the link to the article you were referring to, the URL to the one suggested by you isnt working.
- Edited by Anand Sarath Thursday, July 19, 2018 9:57 AM
Thursday, July 19, 2018 9:56 AM -
Hi Anand
This post is very old and the link which I have mentioned ,I checked out ,and that page is not available now.
I will try to see if I can find similar post then I will put it here otherwise I cannot do anything
Thursday, July 19, 2018 12:35 PM -
I ran into this issue and had difficulty finding anything on this but thankfully I ran across this post. Out situation was very similar where a user was running a workflow from O365 and addressing it to a on-premises 2013 Document Library. The message as stated was processed by the SMTP server and delivered to the Drop folder, but when the Timer job ran it would not process those message. All other messages where processed without issue. Comparing the good messages vs the ones that would not process, and after reading this post, I saw the message that would not get processed had "X-Mailer: Microsoft SharePoint Foundation 2010 ". As a test, a removed that line from the message and saved it. SharePoint timer job ran and processed the message as expected. I do wish there KB article was still available on this so if anyone does find one please post.
During the troubleshooting phase of this, we did determine a work around where using Microsoft Flow for sending the e-mails does get processed by the SP 2013 farm without issues. I realize this may not be an option for everyone but I have confirmed it will work.
Tuesday, December 3, 2019 2:16 PM