473,698 Members | 1,976 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2401
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.co m

"Mufasa" <jb@nowhere.com wrote in message
news:%2******** ********@TK2MSF TNGP02.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.c omwrote in
message news:%2******** ********@TK2MSF TNGP03.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.co m

"Mufasa" <jb@nowhere.com wrote in message
news:%2******** ********@TK2MSF TNGP02.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.com wrote in message
news:%2******** ********@TK2MSF TNGP06.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.c omwrote
in message news:%2******** ********@TK2MSF TNGP03.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.co m

"Mufasa" <jb@nowhere.com wrote in message
news:%2******* *********@TK2MS FTNGP02.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
6431
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? 2) After I get the filenames of the attachments, how do I download them to a local folder? Thanks in advance.
4
3857
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 is true? What is the limitation on the size of the message text field? Of course, an option is to send my long text as an attachment. This will not be viable for me since our mail server blocks all attachments. Any ideas? Thanks, Ranganath
7
3283
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 I believe if it's solved, the remaining stuff is easy... my full program until now is here: http://www.geocities.com/tom4_h4wk/progmail.zip the problem is the segmentation fault when main trys to run leficheiro.c.... the *.c2 files are the...
1
1604
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 (sending a receipt to the sender). This seems to work under Windows 2003, but won't send the email. I suspect it's a security configuration issue, but can't seem to pin point it (since I am a novice with 2003 server). The server also has...
25
3900
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; printf("enter first string"); scanf("%s",s1); printf("enter second string");
4
2138
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 actions on it and email it back to someone else. However, I'm not familiar with any Python library which does it. Could you a guide me to a relevant library which can handle emails?
6
1250
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? """ ----------------------------------------------------------------------------- Name: _writePythonCode.py Purpose: This script writes Python code and thentransfers control to it. Author: MCSEJUNG
107
11305
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 begin on downloading. Right now with the deleting it will delete from the attachments folder on the server but it does not delete from the database an was wondering if someone could explain what i am doing wrong on deleting attachments and how i could...
0
8672
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8600
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8860
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7712
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4361
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3038
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2323
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1998
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.