如何使用JavaMail API中的机器人从任何电子邮件帐户发送邮件? [英] How to use JavaMail API in android to send mail from any email Account?

查看:254
本文介绍了如何使用JavaMail API中的机器人从任何电子邮件帐户发送邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作邮件发送应用程序。我已经成功地集成JavaMail API的使用Gmail的认证Gmail帐户的工作。 我想知道这个API是否将与其他邮件帐户吗?

I am working on mail sending application. I have successfully integrated JavaMail API to work with Gmail account using gmail authentication. I want to know whether , this Api will work with other mail accounts too?

推荐答案

您可以使用任何SMTP服务器发送用JavaMail消息和任何帐户在该服务器上。如果你想发送带有发件人字段比默认为给定的服务器/帐户外的消息,这完全取决于你使用SMTP服务器上。其中一些可能允许设置任意从字段值,但大部分 - 不是。反正它不是关于JavaMail的,它是关于SMTP。

You can use any SMTP server to send a message with JavaMail and any account on that servers. If you want to send a message with From field other than default for given server/account, it depends entirely on SMTP server that you use. Some of it could permit to set an arbitrary From field value, but most of it - not. Anyway it's not about JavaMail, it's about SMTP.

这篇关于如何使用JavaMail API中的机器人从任何电子邮件帐户发送邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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