IMAP:使用管理员凭据登录用户帐户

IMAP:使用管理员凭据登录用户帐户

问题描述:

我编写了一个代码,我使用IMAP cmds(LOGIN,LIST,FETCH等)登录用户邮箱并检索数据。但是,每次运行此脚本时,对用户的登录凭据进行硬编码都会成为一项繁琐的工作。

I have written a code where i use IMAP cmds(LOGIN, LIST, FETCH etc) to login to a users mailbox and retrieve data. But its becoming a tedious task to hard-code the login credentials of the users every time I run this script.

有没有办法我可以使用管理员凭据登录用户邮箱。(用户用户名和管理员密码)

Is there a way where i can login to the users mailbox using the admin credentials.(Users Username and Admin password)

谢谢和问候

Jaya Prakash

Jaya Prakash

嗨Jaya,

感谢您访问Outlook IT论坛。

Thank you for visiting Outlook IT Forum.

然后我们主要关注 与PC或Mac上的Outlook桌面应用程序相关的一般问题和反馈。由于您的问题与脚本代码更相关,因此我将此线程移至Outlook For Develoer论坛。

Then here we mainly focus on  general questions and feedback related to Outlook desktop application on PC or Mac. Since your issue is more related to script code, I'll move this thread to Outlook For Develoer Forum.

我们建议适当发布的原因是您将获得最合格的受访者群体和定期阅读论坛的其他合作伙伴可以分享他们的知识,也可以从与我们的互动中学习。

The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.

感谢您的理解和支持。

问候,

Perry