|
-
Mar 26th, 2010, 01:17 PM
#1
Read email
Hi,
I've had the idea to create an application that manages football matches played on FIFA10. The game has a built-in feature to send an email with the details of every (online) match you played. These details include the name of the opponent, the final result, possession, etc.
So, for my app to work, I need to be able to read these emails. As far as I can see, they are all from the same address: [email protected]. So would it be possible to only read emails that came from that address?
I've never done something like this before, but from google I know it's possible, and there are many different methods. Since I only need to read, never send, emails, and I need to be able to select an email on the address that it was sent from, can you suggest what method I should use?
Also, I definitely want a method that does not require Outlook to be installed.
Finally, I will need to parse the email so it would be nice if I can get the raw HTML, as the text is in tables and stuff.
I'll keep reading some stuff on google but frankly, there's so many different methods that I am getting lost pretty quickly. I don't want to spend ages on this project, so it would be nice if I could use the best method right away, instead of wasting time trying out different methods and figuring out which is the best...
Thanks!
-
Mar 26th, 2010, 01:44 PM
#2
Re: Read email
What you need to do is have something that can connect to a POP3 server and retrieve the data... it can be done... there isn't anything directly inhereint in the .NET framework that can do this (like there is for the SMTP client to send) ... so it takes a little work. Try searching DevX.com for POP3, .NET and reading .... that's where I found code some time ago to do this...
-tg
-
Mar 26th, 2010, 01:46 PM
#3
Re: Read email
I just found some code that looked promising, but apparently it didn't work with SSL (secure) connections. I am using Gmail, and it did not work for that, so it's pretty useless.
I'll look further.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|