473,385 Members | 1,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Writing an e-mail program to go to gmail, get e-mails and download attachments automatically.

Does anybody have any code that would go out to an e-mail account (I'm using
g-mail), get the e-mails and if there are any attachments, get those and
save them on the local hard drive?

I don't need a fancy user interface, I just need the guts of this.

I want a program that runs in the background that I could then have just
populating the hard drive with the attachments.

TIA - Jeff.
May 3 '07 #1
3 2387
Mufasa,

I'm not sure, but I think that google mail allows for access through
POP3 (I could be wrong here, but I seem to remember it somewhere).

If that is the case, then you should be able to find a POP3 client
component which you can use to download the messages and attachments.

Just searching google, I found this:

http://www.codeproject.com/useritems/Pop3MailClient.asp

But there are more (I searched for "POP3 .NET client").

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mufasa" <jb@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
Does anybody have any code that would go out to an e-mail account (I'm
using g-mail), get the e-mails and if there are any attachments, get those
and save them on the local hard drive?

I don't need a fancy user interface, I just need the guts of this.

I want a program that runs in the background that I could then have just
populating the hard drive with the attachments.

TIA - Jeff.


May 3 '07 #2
Thanks. I had already found that and downloaded it. I just haven't looked at
it yet.

J.

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote in
message news:%2****************@TK2MSFTNGP03.phx.gbl...
Mufasa,

I'm not sure, but I think that google mail allows for access through
POP3 (I could be wrong here, but I seem to remember it somewhere).

If that is the case, then you should be able to find a POP3 client
component which you can use to download the messages and attachments.

Just searching google, I found this:

http://www.codeproject.com/useritems/Pop3MailClient.asp

But there are more (I searched for "POP3 .NET client").

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mufasa" <jb@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>Does anybody have any code that would go out to an e-mail account (I'm
using g-mail), get the e-mails and if there are any attachments, get
those and save them on the local hard drive?

I don't need a fancy user interface, I just need the guts of this.

I want a program that runs in the background that I could then have just
populating the hard drive with the attachments.

TIA - Jeff.



May 3 '07 #3
I looked at that program and it just get's the raw e-mail. I don't know how
to deal with the attachments which is what I'm really after.

J.

"Mufasa" <jb@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
Thanks. I had already found that and downloaded it. I just haven't looked
at it yet.

J.

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote
in message news:%2****************@TK2MSFTNGP03.phx.gbl...
>Mufasa,

I'm not sure, but I think that google mail allows for access through
POP3 (I could be wrong here, but I seem to remember it somewhere).

If that is the case, then you should be able to find a POP3 client
component which you can use to download the messages and attachments.

Just searching google, I found this:

http://www.codeproject.com/useritems/Pop3MailClient.asp

But there are more (I searched for "POP3 .NET client").

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mufasa" <jb@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>>Does anybody have any code that would go out to an e-mail account (I'm
using g-mail), get the e-mails and if there are any attachments, get
those and save them on the local hard drive?

I don't need a fancy user interface, I just need the guts of this.

I want a program that runs in the background that I could then have just
populating the hard drive with the attachments.

TIA - Jeff.




May 3 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Li Weng | last post by:
Hi, I have two questions: 1) If there are more than one attachments, can I still use urn:schema:httpmail:attachmentfilename to get the file names? How? Or I need to use X-MS-ENUMATTS method? ...
4
by: Ranganath Udupa | last post by:
I need to include a mail to a concerned person whenever a button is clicked in an Access form. So I used the DoCmd.SendObject command. However, it seems like I cannot send a long message text. Is...
7
by: tyler_durden | last post by:
thanks a lot for all your help..I'm really appreciated... with all the help I've been getting in forums I've been able to continue my program and it's almost done, but I'm having a big problem that...
1
by: Jozef | last post by:
Hello, I have a client that just switched to Windows 2003 server. Their website has always run fine under Windows 2000, using an email program queue_manager.exe to send order and support emails...
25
by: sravishnu | last post by:
Hello, I have written a program to concatanae two strings, and should be returned to the main program. Iam enclosing the code, please give me ur critics. Thanks, main() { char s1,s2;...
4
by: tomer.ha | last post by:
Hi there, I'm new to Python, but know other scripting and programming languages. I want to develop a script which will receive emails with attachments from my POP3 account, perform certain...
6
by: mcse jung | last post by:
Here is asample program that writes a program and then executes it. Do you knowof a much simpler way of writing a program that writes a program? """...
107
by: bonneylake | last post by:
Hey Everyone, Well for the last few days i been trying to figure out how to delete attachments and download attachments to my computer. The deleting is sort of working and i don't know where to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.