Working on incoming emails with SSIS - ssis

We are quite successful in using SSIS for sending out email notifications. On the other hand, we are missing an Email Source Adapter.
Assume the following situation: we receive mail with standardized Attachments. (e.g. Excel) We would like to have SSIS run over the (POP or IMAP) mailbox and analyze emails and attachments.
Has anybody seen such an adaptor? No matter if commercial or open source.

Related

In the Outlook Add-In API for javascript in a Compose Form, is it possible to require a Read Receipt on a message before it's sent?

I'm trying to find out if it's possible from an Outlook Add-In for a Compose Form to add a Read Receipt to a message before it's sent.
My company has a form library built in an older version of outlook and an older version of exchange. The form has quite a few fields that are easy to replicate with an outlook add-in. The main requirement that I haven't been able to find any documentation on is that each time the form is used to send a message, it automatically checks the Options/Tracking/Send Read Receipt checkbox before the form creates the email body and sends the message.
I've read through the documentation (https://learn.microsoft.com/en-us/office/dev/add-ins/outlook/), but I haven't been able to find anything that mentions Tracking or Read Receipts. Is that something I'd have to call in Exchange Web Services or access through the REST API? All of the messages sent with this add-in will be going to recipients inside my company.
Currently the Read Receipt feature is not a part of the Outlook Add-Ins framework. We track Outlook Add-In feature requests on ourĀ user-voice page. Please add your request there. Feature requests on user-voice are considered when we go through our planning process. Alternatively, you may be able to use the Outlook REST API to achieve this.

What further happens after emails are received on SMTP ? Who Stores the email, is that SMTP?

I am developing a customized SMTP server, it is almost complete too. Other SMTP can now contact with my SMTP and I can successfully recive what they send to me. But now I am thinking is it responsibility of SMTP to store the received email OR I will have to pass recived values to any other program that stores these values(such as to,from,data) of recived emails. If so then what is that program ? If not then who will store received values, is that SMTP ??
What you've written is a Mail Transfer Agent (MTA). A piece of software that delivers mail to a user's mailbox is called a Mail Delivery Agent (MDA). The MDA can be a part of the MTA (that is, you can write code in your server that knows how to deliver to mbox, maildir, etc., as for instance Sendmail does), or it can be a separate program like procmail or maildrop.
If you would like to model your custom SMTP server after Postfix (which happens to be the only SMTP server I have experience with), Postfix implements the storing of emails in text files using Postfix-maildrop in the mbox format located at /var/mail/[username] (in the Ubuntu/Debian universe, this is where they live anyway).
I found more details in another thread listed below:
https://unix.stackexchange.com/questions/23277/where-does-postfix-store-email
Mbox format described:
http://en.wikipedia.org/wiki/Mbox
https://www.rfc-editor.org/rfc/rfc4155

Process mailbody with SSIS

I'm working on a SSIS project that mainly fetches data from an oracle DB and puts it in excel sheets, with some logging and email-sending etc.
Situation now: comments are emailed daily and manually copy pasted from outlook into the excel files (oldskool)
Now, we'd like to fetch the (whole) <'body'> of the emails and insert that in excel via SSIS.
2 questions arise:
-- How to fetch the mail itself (fetch it from the exchange? create a process that saves the mail as a html/text file after receiving)
-- How to 'read' the body of the email (I already found some info on this, less of a problem, via a C# script task read the body tag)
Thanks in advance for any input!
You have to use 3rd party components to read messages from Exchange.
It's better to try Script Task to access Exchange (take a look at this question). This way You can access exchange mailbox and put subject, from, to, cc, bcc and body in separate columns in pipeline. Don't forget that connecting to Exchange requires windows account and that way your package must be run by user who owns mailbox. Or You can impersonate him in Script Task.
Since this is quite a task, U guess it would be better to create simple application that will read mails and store them in database so You can retrieve them easily with SSIS.

Creating Outlook mail with multiple recipients and attachment

I have a web application, written in PHP, where we have a couple of files that regularly needs to be sent to multiple recipients. The client wishes to have the mail conversation in their mailbox, so the web app should not send the e-mails itself. Is it possible, and if so how, to do the following:
Create an e-mail with multiple recipients
Add text to the subject and body of the e-mail
Download and attach a zip file which is available on the server
The mail client in question is Outlook - I'm unsure of the exact version.
I'm open to suggestions on which technology to use for this - the client mentioned Visual Basic but I'm unsure of how I could use that on the client side of the web app - or if it's even appropriate.
Assuming that the client want's to send that by hand, you can do all that by using the mailto: in an tag and "&attachment=". The only problem is that attached files need to be localy accessable. If they are not, they are not attached. Exact syntax specifications can be found here: mailto: Syntax
If you have imap access to the customers mail server you could use php imap mail and php imap mail compose to create a email which will just show up in your customers sent email folder.
Also I there is a MIME Message class, where the author claims that it can create and save an email as an .eml file. MIME Class
This is theoretically possible, but only with IE on the client side, and with other limitations and tribulations.
How about a different approach: Have the web server send out the E-Mail, and send a copy into the client's mailbox. Mark the copy with a special header or something, and add a rule in the client's Outlook to sort mails with that header into a specific folder.

Download Email attachment using SSIS

I would like to Download Email attachment using SSIS.If possible,Please describe the process.
If you can use third-party solutions, check the commercial CozyRoc SSIS+ library. It includes Receive Mail Task, which can download email form POP3 and IMAP servers. Saving of email attachments is also supported.