Mail Service
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
메일
이 서비스를 사용하면 스크립트가 사용자를 대신하여 이메일을 보낼 수 있습니다. Gmail 서비스도 참고하세요. Gmail 서비스와 달리 메일 서비스의 유일한 목적은 이메일을 보내는 것이며 사용자의 Gmail 계정에 액세스할 수 없습니다.
클래스
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[[["\u003cp\u003eThe Mail service enables scripts to send emails on behalf of a user without accessing their Gmail account, focusing solely on sending functionality.\u003c/p\u003e\n"],["\u003cp\u003eIt features the \u003ccode\u003eMailApp\u003c/code\u003e class with methods to send emails and check the remaining daily email quota.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMailApp\u003c/code\u003e offers various \u003ccode\u003esendEmail\u003c/code\u003e methods to send emails with different levels of customization, including specifying recipients, subject, body, and optional arguments.\u003c/p\u003e\n"]]],["The Mail service enables scripts to send emails. It differs from Gmail Service by only sending emails, lacking access to Gmail accounts. The `MailApp` class facilitates this with methods like `sendEmail()` to dispatch messages, accepting variations in arguments for recipients, subject, body, and options. `getRemainingDailyQuota()` method returns the number of remaining recipients allowed for the day. The service focuses solely on outbound email functionality.\n"],null,["# Mail Service\n\nMail\n\nThis service allows scripts to send email on a user's behalf. See also\n[Gmail Service](/apps-script/reference/gmail). Unlike Gmail Service,\nMail Service's sole purpose is sending email; it cannot access a user's Gmail\naccount.\n\nClasses\n-------\n\n| Name | Brief description |\n|-------------------------------------------------|-------------------|\n| [MailApp](/apps-script/reference/mail/mail-app) | Sends email. |\n\n[MailApp](/apps-script/reference/mail/mail-app)\n-----------------------------------------------\n\n### Methods\n\n| Method | Return type | Brief description |\n|-----------------------------------------------------------------------------------------------------------------------------|-------------|----------------------------------------------------------------------------------|\n| [getRemainingDailyQuota()](/apps-script/reference/mail/mail-app#getRemainingDailyQuota()) | `Integer` | Returns the number of recipients you can send emails to for the rest of the day. |\n| [sendEmail(message)](/apps-script/reference/mail/mail-app#sendEmail(Object)) | `void` | Sends an email message. |\n| [sendEmail(recipient, subject, body)](/apps-script/reference/mail/mail-app#sendEmail(String,String,String)) | `void` | Sends an email message. |\n| [sendEmail(recipient, subject, body, options)](/apps-script/reference/mail/mail-app#sendEmail(String,String,String,Object)) | `void` | Sends an email message with optional arguments. |\n| [sendEmail(to, replyTo, subject, body)](/apps-script/reference/mail/mail-app#sendEmail(String,String,String,String)) | `void` | Sends an email message. |"]]