0
votes

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

1
for that i would suggest to use "Java Mail API", library and examples are available on the net, search for the same on google. - Paresh Mayani
i checked that and it works for gmail alone. Do we have to configure account settings for different mail accounts? - Pattabi Raman

1 Answers

0
votes

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.