Java 8은 지원이 종료되었으며 2026년 1월 31일에
지원 중단됩니다. 지원 중단 후에는 조직에서 이전에 조직 정책을 사용하여 레거시 런타임의 배포를 다시 사용 설정한 경우에도 Java 8 애플리케이션을 배포할 수 없습니다. 기존 Java 8 애플리케이션은
지원 중단 날짜 이후에도 계속 실행되고 트래픽을 수신합니다.
지원되는 최신 Java 버전으로 마이그레이션하는 것이 좋습니다.
헤더 또는 첨부파일이 포함된 메일
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
Mail API를 사용하여 메일을 보낼 때 사용 가능한 헤더 및 첨부 가능한 파일 유형에 몇 가지 제한사항이 있습니다.
발신 이메일에는 보내는 사람, 받는 사람, 날짜, 제목 등 메시지 관련 세부정보를 제공하는 헤더가 있습니다. 각 헤더에는 이름과 값이 있습니다.
다음과 같은 헤더도 발신 이메일에 포함할 수 있지만, 보안상 다른 헤더는 허용되지 않습니다.
- In-Reply-To
- List-Id
- List-Unsubscribe
- On-Behalf-Of
- 참조
- Resent-Date
- Resent-From
- Resent-To
첨부파일이 포함된 메일
발신 이메일 메시지에 파일을 첨부할 수 있습니다. 각 첨부파일에는 파일 이름과 파일 데이터가 있습니다. 파일 데이터 출처에는 제한이 없으며 애플리케이션 데이터 파일, Datastore 등일 수 있습니다.
금지되는 파일 이름 확장명
바이러스로부터 보호하기 위한 보안 조치에 따라 이메일 첨부파일에 다음과 같은 파일 이름 확장명을 사용할 수 없으며, ZIP 파일은 다음과 같은 파일 이름 확장명이 있는 파일을 포함할 수 없습니다.
- ade
- adp
- 박쥐
- chm
- cmd
- com
- cpl
- exe
- hta
- ins
- isp
- jse
- lib
- mde
- msc
- msp
- mst
- pif
- scr
- sct
- shb
- sys
- vb
- vbe
- vbs
- vxd
- wsc
- wsf
- wsh
첨부파일 및 MIME(Multipurpose Internet Mail Extensions) 유형
첨부파일의 MIME 유형은 파일 확장자에 따라 결정됩니다. MIME 유형은 전송할 콘텐츠의 유형을 확인하여 해당 데이터의 전송 방식을 결정할 수 있습니다.
다음은 MIME 유형 및 해당하는 파일 이름 확장자의 목록입니다. 목록에 나열된 확장명만 사용하도록 제한되지는 않지만, 알 수 없는 확장명을 사용할 경우 App Engine이 확장명에 MIME 유형 application/octet-stream
을 할당합니다.
MIME 유형 |
파일 이름 확장자 |
application/msword |
doc, docx |
application/pdf |
pdf |
application/rss+xml |
rss |
application/vnd.google-earth.kml+xml |
kml |
application/vnd.google-earth.kmz |
kmz |
application/vnd.ms-excel |
xls, xlsx |
application/vnd.ms-powerpoint |
pps, ppt, pptx |
application/vnd.oasis.opendocument.presentation |
odp |
application/vnd.oasis.opendocument.spreadsheet |
ods |
application/vnd.oasis.opendocument.text |
odt |
application/vnd.sun.xml.calc |
sxc |
application/vnd.sun.xml.writer |
sxw |
application/x-gzip |
gzip |
application/zip |
zip |
audio/basic |
au snd |
audio/flac |
flac |
audio/mid |
mid, rmi |
audio/mp4 |
m4a |
audio/mpeg |
mp3 |
audio/ogg |
oga, ogg |
audio/x-aiff |
aif, aifc, aiff |
audio/x-wav |
wav |
image/gif |
gif |
image/jpeg |
jpeg, jpg, jpe |
image/png |
png |
image/tiff |
tiff, tif |
image/vnd.wap.wbmp |
wbmp |
image/x-ms-bmp |
bmp |
text/calendar |
ics |
text/comma-separated-values |
csv |
text/css |
css |
text/html |
htm, html |
text/plain |
asc, c, diff, log, patch, pot, text, txt |
text/x-vcard |
vcf |
video/mp4 |
mp4 |
video/mpeg |
mpeg, mpg, mpe |
video/ogg |
ogv |
video/quicktime |
qt, mov |
video/x-msvideo |
avi |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-09-04(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-04(UTC)"],[[["\u003cp\u003eWhen using the Mail API, specific headers like In-Reply-To, List-Id, and others are allowed, while other headers are restricted for security.\u003c/p\u003e\n"],["\u003cp\u003eOutgoing emails can include file attachments from various sources, with each attachment having a filename and file data.\u003c/p\u003e\n"],["\u003cp\u003eCertain filename extensions, such as .exe, .bat, and .vbs, are prohibited for email attachments and within ZIP files to prevent the spread of viruses.\u003c/p\u003e\n"],["\u003cp\u003eThe Multipurpose Internet Mail Extensions (MIME) type, which is derived from the file extension, defines the content type of an attachment, and when an unknown extension is used it will be given the MIME type of \u003ccode\u003eapplication/octet-stream\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe provided documentation explains which first-generation runtimes can use the Mail API, as well as the migration options to second-generation runtimes.\u003c/p\u003e\n"]]],[],null,["# Mail with Headers or Attachments\n\nWhen you send mail using the [Mail API](/appengine/docs/legacy/standard/java/mail),\nthere are some restrictions on the headers that you can use and the types of\nfiles you can attach.\n| This API is supported for first-generation runtimes and can be used when [upgrading to corresponding second-generation runtimes](/appengine/docs/standard/\n| java-gen2\n|\n| /services/access). If you are updating to the App Engine Java 11/17 runtime, refer to the [migration guide](/appengine/migration-center/standard/migrate-to-second-gen/java-differences) to learn about your migration options for legacy bundled services.\n\nOptional headers you can use\n----------------------------\n\nAn outgoing email has headers that provide details about the message, such as\nthe sender, recipient, date, and subject. Each header has a name and a value.\nYou can also include the following headers in an outgoing email; for security\npurposes, other headers are not allowed:\n\n- In-Reply-To\n- List-Id\n- List-Unsubscribe\n- On-Behalf-Of\n- References\n- Resent-Date\n- Resent-From\n- Resent-To\n\nMail with attachments\n---------------------\n\nAn outgoing email message can have file attachments. Each attachment has a\nfilename and file data. The file data can come from any source, such as an\napplication data file or the datastore.\n\n### Filename extensions that are prohibited\n\nAs a security measure to protect against viruses, email attachments cannot use\nthe following filename extensions, and ZIP files cannot contain files with the\nfollowing filename extensions:\n\n- ade\n- adp\n- bat\n- chm\n- cmd\n- com\n- cpl\n- exe\n- hta\n- ins\n- isp\n- jse\n- lib\n- mde\n- msc\n- msp\n- mst\n- pif\n- scr\n- sct\n- shb\n- sys\n- vb\n- vbe\n- vbs\n- vxd\n- wsc\n- wsf\n- wsh\n\n### Attachments and Multipurpose Internet Mail Extensions (MIME) types\n\nThe MIME type of an attachment is determined from the file's extension. The MIME\ntype identifies the type of content that is being sent, and can determine how\nthat data is transferred.\n\nThe following is a list of MIME types and their corresponding filename\nextensions. You are not limited to these extensions, but if you use an unknown\nextension, App Engine will assign it the MIME type `application/octet-stream`."]]