如何通过C#.net而不是“主要”访问Gmail的其他标签标签? [英] How to Access Gmail's other Tabs through C#.net rather than "Primary" tab?

查看:74
本文介绍了如何通过C#.net而不是“主要”访问Gmail的其他标签标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想实现gmail以将邮件发送到客户端。现在,gmail包含许多选项卡,如主要,促销,社交等。默认情况下,邮件将被发送到主要选项卡。但是,现在我想发送到促销标签。我们怎么做到的?请帮助我..我需要C#.NET编码。我知道如何使用C#发送电子邮件,但我需要邮件来点击其他标签而不是gmail中的主要标签。

I want to implement the gmail for sending mails to the client. Now, gmail contains many tabs like "Primary", "Promotions","Social", etc., By default, the mail will be sent to the "Primary" tab. But, now I want to send to the promotions tab. How we can do it? Kindly help me.. I need thorugh "C#.NET" coding. I know how to send the email using C#, but I need mail to hit other tabs rather than "Primary" tab in gmail.

推荐答案

我们不能这样做。 SMTP协议(用于发送电子邮件的协议)只能将电子邮件发送到收件人的邮箱。 Gmail本身会将电子邮件分类到不同的文件夹中,依此类推。



但是,IMAP协议(使用访问电子邮件的协议)确实允许您获取这些文件夹并删除或添加新电子邮件( 甚至将电子邮件从一个文件夹移动到另一个文件夹)。但是,仍然不允许您对收件人的电子邮件进行分类。
We cannot do that. SMTP protocol (the protocol being used to send the emails) is only able to send the email to the recipient's mailbox. Gmail itself categorizes the emails into different folders and so on.

However, the IMAP protocol (protocol used to access the emails) does allow you to get these folders and delete or add new emails (or even move emails from one folder to another). But, still that won't let you categorize the emails of your recipient.


这篇关于如何通过C#.net而不是“主要”访问Gmail的其他标签标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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