如何从我们的Andr​​oid应用程序自动发送定时邮件? [英] How to send scheduled mail automatically from our android application?

查看:109
本文介绍了如何从我们的Andr​​oid应用程序自动发送定时邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发,在设定的时间将邮件发送到输入的接收方邮件的应用程序。发送器和接收器被设置静态值。发送邮件从设定的时间到接收邮件ID的应用程序中设置静态的身体和主题。现在,如何从独立的邮件帐户邮件发送,而不意图互动

I'm developing an application that sends mail to the entered recipient mail at the set time. The sender and the receiver are set static values. The application that sends mail from on set time to the receiver mail id set static body and subject. Now how to make the mail send from independent mail account without intent interaction

推荐答案

如果不使用意图,就无法发送邮件。我会建议您保存在SQLite数据库邮件内容,并创建保持检查时间特定时间段后发送邮件,如果它是一个有效的时间THN使用意向在后台发送电子邮件服务。

Without using Intents, you cannot send the Mail. I will suggest you to save your mail content in SQLite database, and create a Service that keep checks the time to send the mail after a particular time period, If it is a valid time thn send email in background using Intent.

这篇关于如何从我们的Andr​​oid应用程序自动发送定时邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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