File handling in cloud micro service - spring-boot

I am building an email micro service that is responsible for sending emails , now to be able to handle mail attachment I have two options
Save file to a shared repository
Embed the file in the stream message
What is the best approach for this knowing that email attachment might be up to 5 MB

If it is possible to claim check the attachment (solution 1), I would recommend that.

Related

Spring Catch-All Email

I want to create a gallery app which is automatically feed by emails. When you register on the app I will provide an email pseudo#domain.com When you send a picture to this email you will receive a push notification and then fetch the image when the app will be open.
To do so, I think about an smtp server (like https://github.com/docker-mailserver/docker-mailserver) and a spring boot to listen all emails (via imap or pop). When an email is received, I will check the from to find the user concerned, save the image until the user open the app to fetch it.
I saw some lib to have an embedded smtp server in a spring boot app (https://github.com/voodoodyne/subethasmtp). But if I understand well it's only for testing.
I didn't find so much information and use case. So maybe I have a bad approach, and read all email from a domain is not a good practice. Do you have some documentation about this ?

Can we send file as an attachment along with message in teams programmatically?

Can we send file as an attachment along with message in teams using webhooks or api?
Currently we can send only text message using webhooks and not attach files.
I want to mimic the action in the screenshot below:-
Attach file present in the system
There are ways to first upload file to one drive and then send its link in the teams message but I do not want to use that solution.
Is there a way to directly upload file from your system as an attachment to the microsoft teams using webhook or any alternative way.
Thanks!!
Currently it is not supported to send attachments using webhook. You will need to use bot to send and receive attachments. You can refer this link.
https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/bots-filesv4

Monitor sender's attachment (names only) with Gmail API or Mail Audit API (or with other APIs)?

I'm trying to create an app to monitor employee's file attachments using Google's APIs.
I know that I could download all the emails from the audited user list using Mail Audit API and run scripts on the mails but would there be a better way to get sender's email address with attached file names?
Unfortunately, the only options available are the ones you have already suggested.
However, what you can do is to file a feature request on Google's Issue Tracker here and provide all the necessary details about your use-case and what is it that you want to achieve.

Send file via Teams (like MAPISendMail)

My (editor-like) Windows desktop program can create a new e-mail with the current project attached using MAPISendMail. A customer wants the same functionality for Microsoft Teams.
For the web version, I think I can probably do that with Graph API.
But I can't find anything for the desktop app version. Is there a way to do that?
Bonus:
It would be great if the user could manually specify recipient + body text in Teams (and not in my program).
So you can't actually attach files to messages directly - you basically upload the file to a web location, and then provide a link to the file in the message. As an example, you can upload to the SharePoint document library that exists in the "Files" tab (something like this). Then, in terms of sending the message, you can send to a Team/Channel quite easily using a Webhook. This does not support #mentions the moment though. Another option is to use Graph to send the message.
If you're wanting instead to send a kind of 'private' message to the user, you'd need to look into creating a bot, and sending a 'Proactive' message

Yasoon - Modify existing email, replace file with http(s) share link

Can the Yasoon Outlook development system modify existing emails, so that I could replace all attachments with links to the file from our internal cloud storage environment?
Or does anyone know of an app that will let me do this? I have seen the ones for Box/Dropbox/etc, but we are using FileCloud, and they have a very rich API in addition to the storage being hosted internally.
What the company would like to do is the following:
Select attachments by criteria
Upload the attachment(s) to FileCloud (FileCloud API)
Set the file as shared, with the mailfile owner being the only
authorized user (FileCloud API)
Replace the file in the email with the new share URL from FileCloud
And continue on until all selected attachments have
been processed in the mail file.
Tobi from Yasoon here, sorry for not getting back earlier.
Our tool is probably overblown for this use case though it's possible (https://github.com/yasoonOfficial/com.yasoon.attachment.export)
But you should probably look into the new Outlook API: https://dev.outlook.com/MailAppsGettingStarted/GetStarted

Resources