Now I know this might be an easy one for some people but I can't seem to find the answer.
Does anyone have a solution in asp.net to loop through emails listed within Gmail where I can loop through each of the emails and get the address details, the content and any attachments.
I then want to save the details to a db (easy bit)
I am just looking for the listing emails script for a given date.
Is this easy to do? I am doing it in asp.net so any examples in this would be great in VB format.
Thanks
Jon
You should start of by referring to the Google Gmail API. As you will note Google does not make it too easy to just query and fetch emails.. That's what Gmail is for!
But of course you could create your own IMAP client as Gmail offers supports the same.
I found this IMAP client library, but its in C#.
Hope this helps.
Related
Starting 1/1/2021 Yahoo Mail is making automatic email forwarding a Premium/Paid Feature for all users. Quite a scummy thing to do in my opinion.
I have looked through some Yahoo API documents, but they are either deprecated, or don't seem to offer integration with Yahoo Mail.
https://developer.yahoo.com/oauth2/guide/openid_connect/getting_started.html
This explains how to access the API for read/write access to emails, but it seems these features are either behind a paywall or are deprecated. I've kind of hit a dead end.
Either way, I would assume Yahoo would wall off this functionality since they are making it a paid feature...
I'm thinking of maybe trying test automation software to manually forward emails, but that seems like it may get cumbersome.
If anyone has any insight into this, it would be greatly appreciated.
Thank you in advance.
I am new to programming. I have built a multi-page form for an Android phone using jquery-mobile + phonegap. The form looks and works great, but it seems I have now hit a dead end.
I want the submit button to send the (preferably formatted data) to a specific email address, but am not sure how to do this. The Jquery-mobile documentation explains how to get or post to a url, but I really only want to send it to one or two recipients.
If I put a mailto:name#dom.com statement where the url is asked for it brings up the info in one long string in the native email client.
I'd give code examples, but at this point it is only the procedure I don't understand and am not sure it can be easily done.
Any helpful suggestions would be appreciated as I have exhausted my research sources without success.
Well you need to submit your form to the server-side script first and send your email from there.
In PHP on the server side you can use mail() to achieve that. The better alternative - PHPMailer.
On the client you can only use mailto:.
I found this link to retrieve contacts from gmail really helpful.
http://www.ibm.com/developerworks/opensource/library/x-phpgooglecontact/index.html
I like to simplicity of using directly the username and password to retrieve the contacts list.
I have searched the web but I can't find a similar solution for yahoo and hotmail. Do you know if and how it can be done?
I am aware of the oAuth library but I find this closer to my needs.
This one is to retrieve contacts from yahoo.
http://developer.yahoo.com/forum/Contacts/Actually-getting-Contacts-after-jumping-through/1254438660000-91dbd95f-e129-3a22-8d24-58eb1d1082bc?msg=Reply posted successfully.
I have an application that sends emails when a user creates/modifies a record. I would like my users to be able to reply to the email that was sent to them and have the web application receive the email, parse it and update the record automatically. I have seen this done in web apps like Basecamp. The email usually says "Reply above this line", and if you simply reply to the email, you don't have to log in to the web application in order to update your ticket/conversation.
How can I go about implementing this sort of functionaly? (I'm not looking for a particular language implementation, but rather a language agnostic solution).
There are 2 ways you can do this:
You could use a Procmail filter to pipe the incoming email to your script. This would need some 'nix knowhow to setup - but it's certainly possible to do what you described via this method.
Use a service like MailGun - they do all the hard work of setting up and configuring the mail server stuff and expose it to you via a nice programmable web API. I've been evaluating it this week to solve a similar problem like the one you are having and I can tell you: it is really cool and I highly recommend you check it out yourself.
You'll need to implement a service/daemon that polls an email inbox for new messages. To relate an incoming email to the corresponding data, you can include an id in the outgoing email's subject.
I agree you should created a system to receive the incoming email but I don't necessarily agree that polling for it is the correct solution. Take a look at a blog post I wrote on the subject here. It relates to Rails but the concepts should work in any language. That's why we wrote the CloudMailin system to provide a better way of receiving the email.
Also you can use a unique from address for each email that would prevent the user from altering the subject line being a problem. The disposable part of an email address is useful for that. reply+user123#example.com for example.
i been looking for an application that would check all my added emails to Gmail, but i didn't find any. i found a lot of ways to send emails and so on. but is there any app that would check it intervally ?
i looked at Gmail API, and i found nothing ? so what do you think ?
I would use imap access (see gmail doc and this too).
Hopefully this helps you: mail-gate. It's Java based and open source :-)