[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003e\u003ccode\u003eMailService\u003c/code\u003e enables user code to send emails to various destinations.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003esend(MailService.Message message)\u003c/code\u003e method facilitates sending a pre-configured email message asynchronously, with delivery issues resulting in a bounce to the sender; \u003ccode\u003esender\u003c/code\u003e and at least one of the to/cc/bcc collections must not be \u003ccode\u003enull\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003esendToAdmins(MailService.Message message)\u003c/code\u003e method sends an email notification to all application administrators, also asynchronously, with delivery problems leading to a bounce to the admins; the to/cc/bcc fields should be \u003ccode\u003enull\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eBoth \u003ccode\u003esend\u003c/code\u003e and \u003ccode\u003esendToAdmins\u003c/code\u003e methods will throw an \u003ccode\u003eIOException\u003c/code\u003e if incorrect arguments are given to the function.\u003c/p\u003e\n"]]],[],null,["# Interface MailService (2.0.0)\n\n public interface MailService\n\nThe `MailService` provides a way for user code to send emails\nto arbitrary destinations.\n\nMethods\n-------\n\n### send(MailService.Message message)\n\n public abstract void send(MailService.Message message)\n\nSends a mail that has been prepared in a MailService.Message.\n\n\nThe message will be delivered asynchronously, and delivery problems\nwill result in a bounce to the specified sender.\n\n\n`Sender` and at least one of the collections for `to, cc, bcc`\nmust not be `null`.\n\n### sendToAdmins(MailService.Message message)\n\n public abstract void sendToAdmins(MailService.Message message)\n\nSend an email alert to all admins of an application.\n\n\nThe message will be delivered asynchronously, and delivery problems\nwill result in a bounce to the admins.\n\n\nThe content of the `to, cc, bcc` fields should be `\nnull`."]]