Ā Ā Ā Message message = new Message();
Ā Ā Ā message.setSubject("This is test");
Ā Ā Ā message.setHtmlBody("this is <b>content</b>");
Ā Ā Ā Attachment attachment = new Attachment("test.pdf", blob.getBytes()); // blob size = 488k
Ā Ā Ā message.setAttachments(attachment);
Ā Ā Ā mailService.sendToAdmins(message);
Ā Ā Ā In the Logs ofĀ Administration Console, a warning:
Ā Ā Bad Request: Admin message exceeds size limits
Ā Ā here is the detail quota:
Mail
| Mail API Calls | | 0% | 0 of 7,000 | Okay |
| Recipients Emailed | | 0% | 0 of 100 | Okay |
| Admins Emailed | | 0% | 0 of 5,000 | Okay |
| Message Body Data Sent | | 0% | 0.00 of 0.06 GBytes | Okay |
| Attachments Sent | | 0% | 0.00 of 0.00 GBytes | Okay |
| Attachment Data Sent | | 0% | 0.00 of 0.10 GBytes | Okay
|
Ā Is it problem of Ā "Attachments Sent"? It should beĀ 2,000 attachments.
Ā Anybody can help me? Thank.