简体   繁体   中英

Scheduled Email in Google-App-Engine - Java

What app-engine API will be used for sending scheduled email? I want the app to send email weekly.

For scheduling see:

https://developers.google.com/appengine/docs/java/config/cron

For example:

<cron>
 <url>/reports/weekly</url>
 <description>Mail out a weekly report</description>
 <schedule>every saturday 09:00</schedule>
 <timezone>Asia/Tokyo</timezone>
</cron>

Then configure a servlet to handle the request to /reports/weekly . If you have many to send, you may want to set up the handling servlet to use a taskQueue

For mailing see:

https://developers.google.com/appengine/docs/java/mail/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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