Email to SQL

More
3 years 5 months ago #22326 by Gazmondo
Email to SQL was created by Gazmondo
Hello,

I'm hoping someone maybe able to assist me. I want to connect to a O365 mailbox, download the emails and store them in a database table.
Once i get the emails into SQL I'm in a happy place. I've looked at the controls in ETL but they aren't making much sense to me, I'm not being asked the configuration questions id expect.

Does anyone know how to do this?

Many thanks in advance

G

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #22327 by admin
Replied by admin on topic Email to SQL
Hi.

There are multiple options available depending on your needs

Yes you can download the emails and store them in a database table
this can be done as a batch using transformation

Or you may want to process emails one by one:
Eg:
Read email
Save attachments into the folder
Load data from the attachments into the database
Move email message into the processed folder

The most important step is to connect to the mail server.
This can be done by using IMAP4

Can you try the following, please
Download and install Advanced ETL Processor Enterprise.
Create a new IMAP4 connection and confirm that it is working.

Here is the article with connection details
www.etl-tools.com/wiki/knowledgebase/con...osoft-email-servers/

This however might not work for you, in this case, please create Office 365 connection instead and confirm that it is working
www.etl-tools.com/wiki/advanced-etl-proc...ons/email/office365/

Once confirmed we can have a short remote session where one of us will help you with the transformation

Please watch introduction video to get started

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago - 3 years 5 months ago #22328 by Gazmondo
Replied by Gazmondo on topic Email to SQL
Thanks for the quick response Mike.

I looked at www.etl-tools.com/wiki/advanced-etl-proc...ons/email/office365/

But I don't understand the fields its asking. If you could point me to where i find the client ID, Application ID and Secret I maybe able to work this out.

G
Last edit: 3 years 5 months ago by Gazmondo.

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #22329 by admin
Replied by admin on topic Email to SQL
You would need to login into MS Azure to get them
We do not use it here.
When we added this functionality those details were provided to us by one of our customers so we can do the testing

I did some google search and found this video.

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #22336 by bruce.gibbins
Replied by bruce.gibbins on topic Email to SQL
Hi. This is the correct path to take. Basically, you need to setup OAUTH authentication and permissions for a registered "application". Doing this process will result in a ClientID, Tenant ID and a Secret.

The "Email" is the email address of the Mailbox that you need to collect messages from.

One thing to be cautious of is the "Client Secret" once it is generated and you have a copy of it, when you leave that screen in the Microsoft Azure AD setup you cannot see it again. So, you need to make sure you keep a copy of it so it can be pasted into the AETL O365 Connection dialog box. You can generate a whole new one by creating a new Application registration.

The other thing to be mindful of is the permissions or scope assigned. Without the correct permissions messages may be read but you may not be able to move, delete or flag them as being read.

The video should cover this but you may also find the following links helpful.

How to register your app for Office 365 with OAuth 2.0 authentication
The following user(s) said Thank You: Peter.Jonson

Please Log in or Create an account to join the conversation.

Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Marketing
Set of techniques which have for object the commercial strategy and in particular the market study.
Google
Accept
Decline
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Google Analytics
Accept
Decline
Functional
Tools used to give you more features when navigating on the website, this can include social sharing.
Advertisement
If you accept, the ads on the page will be adapted to your preferences.
Google Ad
Accept
Decline
Save