如何从asp.net获取联系人列表电子邮件 [英] How to get contact list email from asp.net

查看:77
本文介绍了如何从asp.net获取联系人列表电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从gmail或yahoo获取我朋友的联系电子邮件,但我不能。

我可以使用pop3来阅读电子邮件,使用smtp发送电子邮件。但我不知道如何获取联系人列表电子邮件从gmail外的应用程序asp.net发送电子邮件?

I want get contact email of my friends from gmail or yahoo, but i can't.
i can using pop3 to read email, using smtp to send email. but i don't know how to get contact list email to send email from a application asp.net outside gmail?

推荐答案

无法使用IMAP协议或POP捕获联系人协议。这些协议仅用于获取电子邮件,存储它们以及执行其他特定于邮箱的操作。联系人是用户邮箱中的帐户,服务器允许您根据命令获取联系人。虽然协议没有非常快速和快速的方式来为您提供对联系人文件夹的访问。



一个 - 默认或者我应该说,基于协议 - 获取联系人的方式,如果要获取用户电子邮件的地址。然后将这些地址存储为用户的联系人。 垃圾邮件或其他联系人也将被包括在内。有关更多信息,请阅读: http://serverfault.com/questions/235447/getting- contact-list-from-imap-server [ ^ ]。请记住,IMAP是一种仅用于电子邮件数据的协议。 IMAP无法访问联系人和其他日历类型数据。 同样适用于POP3 。阅读这篇文章: http://answers.microsoft.com/en-us/office/forum/office_2010-outlook/how-do-you-copy-all-contacts-between-pop3-email / 266a7917-6e73-e011-8dfc-68b599b31bf5 [ ^ ]



您必须使用联系人API来获取这些服务器的响应。这样做没有简单易行的方法。对于Google,联系人API网址位于: https://developers.google.com/google-apps/contacts / v3 / [ ^ ] (版本3是最新版本,其他版本已弃用 )。
Contacts cannot be captured using IMAP protocol or POP protocol. These protocols are just used to get the emails, store them and to do other mailbox-specific actions. Contacts are accounts in users' mailbox, servers allow you to get contacts based on a command. Whereas the protocol doesn't have a very much fast and rapid way for providing you the access to the folders of contacts.

One -- default or should I say, protocol-based -- way to get the contacts, if to get the address of the users' email messages. Then storing these addresses as the contacts of the users. Spam or other contacts would be also be included. For more, read this: http://serverfault.com/questions/235447/getting-contact-list-from-imap-server[^]. Remember, IMAP is a protocol for email-only data. Contacts and other calendar type data is not accessible by IMAP. Same applies for POP3. Read this post also: http://answers.microsoft.com/en-us/office/forum/office_2010-outlook/how-do-you-copy-all-contacts-between-pop3-email/266a7917-6e73-e011-8dfc-68b599b31bf5[^]

You would have to use the contacts APIs for getting the response from these servers. There is no simple and easy way for doing this. For Google, the contacts API URL is at: https://developers.google.com/google-apps/contacts/v3/[^] (Version 3 is latest and others are deprecated).


这篇关于如何从asp.net获取联系人列表电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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