简体   繁体   English

通过应用发送电子邮件

[英]Send email from app

I have developed an app where the user can enter an email address in the settings and on some specific event an email is sent to this address (as a notification). 我开发了一个应用程序,用户可以在设置中输入电子邮件地址,并在某些特定事件下将电子邮件发送到该地址(作为通知)。

The problem is: what is the best way to send an email from an app? 问题是:从应用程序发送电子邮件的最佳方法是什么?

The best way would be to send an email from the google account of the app user but that isn't possible, right? 最好的方法是从应用程序用户的Google帐户发送电子邮件,但这是不可能的,对吧?

What I'm doing now is to do a HTTP post and send an email through php. 我现在正在做的是执行HTTP发布并通过php发送电子邮件。 This works great but since the app is used by many people the mail sending always gets disabled due to mass mail sending... What can I do? 这很好用,但是由于该应用程序被许多人使用,由于大量邮件发送,邮件发送总是被禁用...我该怎么办?

Do I really need to host my own server? 我真的需要托管自己的服务器吗?

Thanks for your answers. 感谢您的回答。

I find sending emails to user without his interaction something similar to SPAM. 我发现在没有用户交互的情况下向用户发送电子邮件类似于垃圾邮件。 I always choose the easiest and IMO honest alternative: just populate an android.content.Intent.ACTION_SEND intent with calculated data and let user decide wether send the email or not always. 我总是选择最简单和IMO诚实的替代方法:仅使用计算的数据填充android.content.Intent.ACTION_SEND意图,让用户决定是否发送电子邮件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM