なぜ、メルマガシステムでドキュメントを操作するか? メルマガシステムの全体の方針をいったん整理しておきますね。 スプレッドシートに送信先メールアドレスのリストを作る ドキュメントにメルマガの内容を作成する Gmailでメールアドレスのリストにメルマガの内容を送信する こんな流れです。 スプレッドシートのいずれかのセルにメルマガの内容を書いてもいいのですが、書きづらいですし、管理もしづらいので、ドキュメント1つに対してメルマガ1つを対応させていく運用をしていきたいと思います。 ということで、ドキュメントを使います! ドキュメントもGoogle Apps Scriptで操作することができますからね。 ドキュメントを取得してログに出力するスクリプト 今回はドキュメントを取得してログに出力するスクリプトを作成してみます。 ドキュメントを作成 まずテスト用として新規のドキュメントを作成します。 Go