如何从我们的Andr​​oid应用程序自动发送定时邮件?应用程序、自动发送、邮件、Andr

2023-09-08 08:59:20 作者:Pathosis(病态)

我开发,在设定的时间将邮件发送到输入的接收方邮件的应用程序。发送器和接收器被设置静态值。发送邮件从设定的时间到接收邮件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.