Skip to Content
実務で使える メール技術の教科書 基本のしくみからプロトコル・サーバー構築・送信ドメイン認証・添付ファイル・暗号化・セキュリティ対策まで
book

実務で使える メール技術の教科書 基本のしくみからプロトコル・サーバー構築・送信ドメイン認証・添付ファイル・暗号化・セキュリティ対策まで

by 増井 敏克
February 2024
Beginner to intermediate
304 pages
9h 13m
Japanese
Shōeisha
Content preview from 実務で使える メール技術の教科書 基本のしくみからプロトコル・サーバー構築・送信ドメイン認証・添付ファイル・暗号化・セキュリティ対策まで
Let's learn about email technology!
ファイルの添付
MIME マルチパートを使うと、最初のパートで本文、次のパートでファイル
を書くことで、メールにファイルを添付できます。このようなファイルを添付
ファイルといい、メール本文とは別に指定されますが、1 つのメールとして扱
われます。
添付ファイルとして扱うには、複数のパートを作成し、パートのヘッダー部
分に「Content-Disposition」のフィールドで添付ファイルであることと、
ファイル名を明記します。
 ファイルを添付するときには、ファイルを Base64 などでエンコードする
際にメールのサイズが大きくなることに注意が必要です。 3 章でも解説し
たように、メールの容量には上限が設定されています。このときの容量として
5MB まで添付できるメールサーバーに対し、手元のパソコン上で 4MB のファ
イルを添付しようとすると、Base64 のエンコードで約 1.3 倍になり、5MB
を超えてしまうことは珍しくありません。
このように、大きなファイルを添付することを避けるため、大容量のファイ
ルを送信する場合には、メールにファイルそのものを添付するのではなく、
Google Drive One Drive などのファイル共有サービスにアップロードし、
そのリンクを記載する方法がよく使われます。
ファイルを格納した場所の URL をメール本文に記載することで、受信者は
その URL にアクセスしてファイルをダウンロードできるようにするのです ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

データ保護完全ガイド ―あらゆるデータの保全と回復を可能にする

データ保護完全ガイド ―あらゆるデータの保全と回復を可能にする

W. Curtis Preston, 佐野 泰之, 池田 祥孝

Publisher Resources

ISBN: 9784798184111