Jump to content
symboss

Problema Gmail(C#)

Recommended Posts

Posted



SetTrayIconBallonTip("Checking mail server...");
GmailReader.GmailClient client = new GmailReader.GmailClient(txtUserName.Text, txtPassword.Text);
client.GetUnreadMail();
mailCount = (int)client.UnreadMailCount;
if (mailCount == 0)
{
SetTrayIconBallonTip("No new messages");
notifyIcon1.Icon = Gmail.Properties.Resources.picasa_32x32;
}
else
{
if (mailCount == 1)
{
SetTrayIconBallonTip("You have 1 new message");
notifyIcon1.Icon = Gmail.Properties.Resources.desktop_32x32;
}
else
{
SetTrayIconBallonTip("You have " + mailCount.ToString() + " new messages");
notifyIcon1.Icon = Gmail.Properties.Resources.desktop_32x32;
}

Partea de cod de mai sus verifica numarul de mesaje necitite de pe contul de gmail,problema mea este cum pot sa fac sa afisez/citesc mailurile necitite?Orice idei sint binevenite(doar in C#)

Aplicatia foloseste https://gmail.google.com/gmail/feed/atom

Posted (edited)

Ok,acus vad ce se primeste,multumesc mult.

Edit:Am rezolvat cu:


for (int i = 0; i < mailCount; i++)
{
GmailReader.GmailItem Item = client.GetMailItem(i);
lstMessages.Items.Add(Item.Summary);
}

Edited by symboss

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...