473,659 Members | 2,663 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Checking gmail for new, and unread mail

Tyler Wiebe
66 New Member
Hi, I'd like to make a system tray icon that will give me a pop up notification when I receive a new email, and how many unread emails I have in my gmail account. I don't know if it's possible, but I'd much appreciate any information on the subject.
Aug 10 '11 #1
3 3294
Paul Johnson
97 New Member
Have a look at

http://www.all-the-johnsons.co.uk/csharp/email.html

for the connection routine. As for the system tray, not too sure on that as I've never implemented one, but I'd guess that you'd need to poll Google every (say) ten minutes and then fire a modal window from the system tray to say you've got mail. Do it on a thread of it's own with a sleep set on it.

HTH
Aug 10 '11 #2
Tyler Wiebe
66 New Member
Thanks for the link, it works sort of. It seems it displays all of my mail, and not just the unread ones, or new ones.

For now though, I'll see what I can do, but any other info would be great.
Aug 10 '11 #3
Paul Johnson
97 New Member
It does what it says on the tin!

The problem with gmail is that it uses a RESTful system. There is quite a good google library available on sourceforge (IIRC)

http://johnvey.com/features/gmailapi/
Aug 10 '11 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
2278
by: Osiris Sawiris | last post by:
I inherited an Inventory control application that updates the stock from the branches at the end of each day. We receive the stock transactions via e-mail attachments (Excel Sheets). Those attachments are currently being stored manualll in a folder and then imported into the database using the transferworksheet command. I'm facing 2 problems: 1) The imported excel sheets are stored in a table in the FE database for processing and then...
2
207
by: Matt Porter | last post by:
I'm writing a c# web app and I can't find a POP3 mail component. I found the SMTP component, but not a POP3 one. Seems like there should be one. What is the name of the POP3 component? or do I have to write my own?
0
950
by: blini | last post by:
//create the mail message MailMessage mail = new MailMessage(); //set the addresses mail.From = new MailAddress("felipe.blini@gmail.com"); mail.To.Add("felipe.blini@gmail.com"); //set the content mail.Subject = "This is an email"; mail.Body = "this is the body content of the email.";
1
2217
by: Kondapanaidu | last post by:
Hi, I am using C#.NET2.0, My Outlook Inbox is having some mails. My system Configured with Outlook, I need to capture the Unread mail subject line. How to capture the subject line from the unread mail.
4
3646
by: MMAS | last post by:
I've got my .net application set up to use gmail as a mail server (see code below). Everything works quite well, actually, EXCEPT for one particular email account. I've created an "admin" account that I'd like to use to send emails from since GMail automatically replaces the "from" field with whoever you're using to send emails from. When I use this account, I get the following exception(s) (inner ones are unraveled): Could not access...
0
1134
by: Sheena777 | last post by:
How can Check all the new unread mail's subject with vb.net?I want to be able to check the mail's subject and then perform a specific action to that mail.How Can I do this using Vb.net and Outlook 2000.
14
1789
by: Jeff | last post by:
I'm writing my php "form mail" script. Does mail do any checking for header injection in the "to" and "subject" parameters? CR and/or LF? It seems to me it easily could and should, but does it? Jeff
3
7927
by: TobyMcGuire | last post by:
Using the code below I get an exception: "Failure sending mail" Inner exception: "No connection could be made because the target machine actively refused it 74.125.77.109:587" I'm currently on my office and behind a router. My firewall is turned off. The same situation occurs at home when behind my router with no firewall. When I set up an new acount in outlook with the same information as in the code below it works. I've also...
3
1794
by: AbusiveMeercat | last post by:
Ugh this is so frustrating. This code doesn't work for some reason...Can anybody help me fix it? class MainClass { public static void Main (string args) { MainClass mailman = new MainClass(); mailman.Mailer(); }
0
8330
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
8850
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8746
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8626
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...
1
6178
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4175
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...
0
4334
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2749
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
1737
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.