如何在asp.net中设置读取未读状态的gmail邮件? [英] how to set read unread status of gmail mail in asp.net?

查看:153
本文介绍了如何在asp.net中设置读取未读状态的gmail邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的asp.net网站上我集成了gmail帐户,我的问题是,当我在gmail中读取邮件时,那个邮件状态会被读取,以及如何在我的应用程序中将该邮件的状态设置为读取? />


如何从gmail获取已读和未读的邮件?

解决方案

请参阅 - 消息标志 [ ^ ]。

Quote:

< span class =n> DELETED = r'\Deleted'

SEEN = r'\Seen'

ANSWERED = r'\An应答'
FLAGGED = r'已标记'

DRAFT = r' \'工艺'

最近 = r'\Recent' #这个标志是只读的

我想,你需要检查消息是否被标记最近


来自Gmail的邮件 [ ^ ]

In my asp.net website i integrate gmail account, my problem is that, when i read mail in gmail, then that mail status become read, and how to set status of that mail in my application as read??
And
how to get read and unread mails from gmail?

解决方案

Refer - Message Flags[^].

Quote:

DELETED = r'\Deleted'
SEEN = r'\Seen'
ANSWERED = r'\Answered'
FLAGGED = r'\Flagged'
DRAFT = r'\Draft'
RECENT = r'\Recent' # This flag is read-only

I guess, you need to check whether message is flagged Recent or not.


Mails from Gmail[^]


这篇关于如何在asp.net中设置读取未读状态的gmail邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆