I'm trying to drop Outlook from my MS Access application. The main problem is to fetch emails from my gmail account and for example delete it or read the body etc.
I know I can use CDO to send email from VBA using my gmail account, but is it possible to get my inbox using VBA?
Thanks.
I have found the solution. There is a library you can use to fetch emails from using IMAP or POP3 protocol via VBA http://emailarchitect.net/eagetmail/kb/vb.aspx
You would need some type of intermediate API call, such as an SMTP service, in order to accomplish this task. You would then be able to setup a CDO object through which to read/write messages.
Related
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.
Is it possible to retrieve emails from multiple inboxes using EWS Managed API 2.2? I am able to retrieve email from an Inbox using ExchangeService passing in Credentials to the service call then doing a FindItems on the service connection. All of this works good.
I would like to get emails from multiple inboxes using a single call. Is this possible. Any sample code would be very much appreciated.
You can acces EWS through either Oauth, NTLM or Basic-authentication, which all are per-request authentication schemes. Oauth takes some initial setup, and NTLM takes 3 requests in total for every EWS request, but in either way, it's just for one user at a time.
Is there a way to get emails from gmail using some API for emails to go directly in front end of web application through some JSON api or XML format?
You can get gmail emails using GMAIL API's ... XOAUTH will come into picture in it.
Step 1. Use OAUTH 2.0 to get access token and refresh token of GMAIL account.
Step 2. Use that access Token in XOAUTH and with the help of GMAIL API's access all the folders and emails from GMAIL.
Please refer -> https://developers.google.com/google-apps/gmail/oauth_overview for more information
There are no libraries available for front end .. ie JSON or XML..
You have to use either python ,java or PHP..
You can refere: http://context.io/ ... which might help you for what u need...
http://context.io/ provides API's through which you can access and sync your email through REST .
You would get response in form of JSON which you can easily parse... Hope it helps :)
Is it possible to use email to update mysql table?
for example I have someone send email which have today article with the image as an attachment and it have to send to particular email address (eg: abc#something.org) to be able to process data to sql table, other address will not work for updating.
Once it receive, it automatically proceed and update sql from the article it receive.
How is it work?
is there any open source that may help this process
Not by sql, you have to involve some sort of programming language which have a subset of methods to communicate with the database and that can receive and send email.
Take a look at Sendgrid (at http://sendgrid.com): they have a parse API (see http://wiki.sendgrid.com/doku.php?id=parse_api for details) that basically lets you convert an email into an HTTP POST. So if you already have a web page that can update the MySQL database you can just modify it to comply with their spec, set up a sub domain that forwards to Sendgrid and then setup a Sendgrid endpoint that takes any email to that sub domain and posts it to your web page.
It depends on your application. If you're using a framework like Wordpress, there are plenty of plugins available to integrate (e.g. Postie). If you have your own custom application, you may find an open source script to download the new messages, but you'll have to implement your own code to update your database.
My send mail task works fine for email ids like user#mydomain.com but it throws error for email ids like user#subdomain.mydomain.com.
is there any way i can make it work for such ids also?
Thanks.
If you haven't tried already, put the email in a variable and use the expressions to set it to the ToLine property.
Otherwise you could use a script task and send an email that way. From what I can tell there are a lot of limitations with using the Send Email Task.
this should help:
http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.dts.tasks.sendmailtask.sendmailtask.aspx
The error with emails on subdomains is not specific to SSIS send mail tasks; it may be a limitation or rule on your SMTP server.
I am successfully getting emails from my SSIS Send Mail tasks, on my subdomain account