03-25-2019 11:39 AM
03-25-2019 11:39 AM
Based on all the tutorials and resources I've read, if you send an email with an attachment to a Microsoft Teams channel email address, the email AND attachment are supposed to be saved in the underlying document library. This is not the case for us.
If I send an email with a CSV report file attached to it, Microsoft Teams picks up the email as an EML file, and I see nothing about the attachment. If I open the document library, I ONLY see the email saved there - no sign of the attachment. However, if I open the email, the attachment is contained within it, so it's clearly not getting stripped out before being received by Teams. Teams just isn't picking up the attachment, and not saving it the way I read it should.
Why is the attachment not being saved independently of the email? We need to run a Flow on the attachment - we do not care about the email itself.
03-25-2019 11:49 AM
03-25-2019 03:24 PM
03-25-2019 11:08 PM
03-26-2019 05:18 AM
Thanks for your replies. I have verified that the report sends the CSV file as an attachment just fine by sending to my work email, and we've used this same report scheduler with SharePoint 2010 reliably for quite some time - so there's nothing wrong with the email itself.
The reports I have been sending to test are approximately 3.00MB. From what I've seen, the email size cannot exceed ~25kb, but the attachments supposedly can go way past 3.00MB, so that's not the issue.
Finally, I cannot change the file format - this is a very limited third-party application. This is why I need to make Teams pick up the CSV as it should - I cannot change virtually anything about the export except for reporting filters. I will try with limiting the size though.
Attached are images of the email on my team channel "Conversations" feed, the email as it appears in the document library, and how it looks in Outlook (you can see the attachment is there). No "Attachments" folder is created even if I go to SharePoint and open the folder for my team channel - it does not detect the attachment..
03-26-2019 05:29 AM
03-26-2019 08:17 AM
03-26-2019 08:40 AM
@raisbeck Just a stray thought as I was reading this thread. Have you gone into the document library in SharePoint itself and looked around there? Could the .csv files have landed in the root of the document library instead of the folder that supports the channel? Have you ever renamed this channel?
01-22-2020 05:02 AM
Hi @raisbeck could you find a solution to your issue? I am experiencing the same (with PDF attachments) if I generate the e-mail and attachment automatically with a docgen software. In Outlook the attachment is visible, however not in Teams. If I forward the same E-Mail from my Outlook to Teams, the PDF is shown.
03-31-2020 01:14 AM
@lisap1010 I have similar issues sending an email from one of our Linux hosts with an attachment report to a MS teams channel. I was using linux mail command and for me worked defining the content-type to text/html of the attachment in the command.
I was using this (mail -s "Report" --attach=report.csv firstname.lastname@example.org) and using this command made the things work (mail -s "Report" --attach=report.csv --content-type=text/html email@example.com)
Hope that helps
03-31-2020 01:57 AM
@raisbeck perhaps try something different. To do this, I don't use Teams Email functionnality because this is not work as wanted. My goal is to publish in a team Channel, a message and some documents, send by email. So I create a shared mailbox for each team , when user send an email with attachments to this shared mailbox, I got a flow (Power Automate) which on new email with attachment publish a message on a Team Channel, and set the email attachments into this Team message. Hope I'm clear
04-04-2020 12:56 PM
@raisbeck, just wondering if you ever found the issue with the emails not saving the attachments, having the same issue with emails that are generated from a suppliers system. all looks good xls attachment there saves correctly if I send as a forward but not when directly received to teams.
just cant see what is different about it to cause it to fail. any help appreciated.
04-20-2020 02:34 AM