javamail access to a shared mailbox

后端 未结 3 927
灰色年华
灰色年华 2021-01-13 07:01

I\'m trying to write an java application that will access a additional, shared mailbox to read emails and perform other activities. I have no problem reading my own

3条回答
  •  佛祖请我去吃肉
    2021-01-13 07:43

    The solution given by Tarun works. But an important note use the alias of the shared account and not the actual email address of shared account. So the actual format is: store.connect(DOMAIN, "USER@xyz.com\SHARED_ACCOUNT_ALIAS","USER_PASSWORD");

提交回复
热议问题