Package com.google.appengine.api.mail
Interface MailService
public interface MailService
The
MailService provides a way for user code to send emails
to arbitrary destinations.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classstatic classMessages are prepared by the caller, and then submitted to the Mail service for sending. -
Method Summary
Modifier and TypeMethodDescriptionvoidsend(MailService.Message message) Sends a mail that has been prepared in a MailService.Message.voidsendToAdmins(MailService.Message message) Send an email alert to all admins of an application.
-
Method Details
-
send
Sends a mail that has been prepared in a MailService.Message.The message will be delivered asynchronously, and delivery problems will result in a bounce to the specified sender.
Senderand at least one of the collections forto, cc, bccmust not benull.- Parameters:
message- The message to be sent.- Throws:
IllegalArgumentException- when incorrect arguments are passed.IOException- on internal delivery errors.
-
sendToAdmins
Send an email alert to all admins of an application.The message will be delivered asynchronously, and delivery problems will result in a bounce to the admins.
The content of the
to, cc, bccfields should benull.- Parameters:
message- The message to be sent.- Throws:
IllegalArgumentException- when incorrect arguments are passed.IOException- on internal delivery errors.
-