시청자에게 다양한 유형의 콘텐츠를 제공하려는 경우 Google Forms를 사용하여 사용자가 수신할 콘텐츠를 선택하도록 할 수 있습니다.
이 솔루션을 사용하면 사용자가 관심 있는 주제를 선택하면 선택한 콘텐츠가 자동으로 이메일로 전송됩니다.
작동 방식
이 스크립트는 사용자가 양식을 제출할 때마다 실행되는 이벤트 기반 트리거를 설치합니다. 양식이 제출될 때마다 스크립트는 Google Docs 템플릿에서 이메일을 작성하여 전송합니다. 이메일에는 사용자의 이름과 선택한 콘텐츠가 포함됩니다. URL로 참조되는 한 어떤 유형의 콘텐츠든 제공할 수 있습니다.
Apps Script 서비스
이 솔루션은 다음 서비스를 사용합니다.
스크립트 서비스: 사용자가 양식을 제출할 때마다 실행되는 이벤트 기반 트리거를 설치합니다.
Google 계정 (Google Workspace 계정의 경우 관리자 승인이 필요할 수 있음)
인터넷에 액세스할 수 있는 웹브라우저
스크립트 설정
다음 버튼을 클릭하여 선별된 콘텐츠 보내기 스프레드시트의 사본을 만듭니다. 이 솔루션의 Apps Script 프로젝트가 스프레드시트에 첨부되어 있습니다.
사본 만들기
사본 스프레드시트에서 확장 프로그램>Apps Script를 클릭합니다.
함수 드롭다운에서 installTrigger를 선택합니다.
실행을 클릭합니다.
메시지가 표시되면 스크립트를 승인합니다.
OAuth 동의 화면에 이 앱은 확인되지 않았습니다라는 경고가 표시되면 고급>{프로젝트 이름}으로 이동(안전하지 않음)을 선택하여 계속 진행합니다.
중요: installTrigger를 두 번 이상 실행하면 사용자가 양식을 제출할 때마다 이메일을 전송하는 여러 트리거가 생성됩니다. 추가 트리거를 삭제하고 이메일 중복을 방지하려면 트리거alarm를 클릭합니다. 각 추가 트리거를 마우스 오른쪽 버튼으로 클릭하고 트리거 삭제를 클릭합니다.
[null,null,["최종 업데이트: 2024-12-21(UTC)"],[[["This solution uses Google Forms and Apps Script to automatically email curated content to users based on their selected topics."],["The script uses an event-driven trigger to run whenever a form is submitted, creating and sending emails from a Google Docs template."],["You'll need a Google Account and a web browser to use this solution; setting up involves copying a spreadsheet, installing a trigger in Apps Script, and authorizing the script."],["To run the solution, simply open the form, fill it out, submit it, and check your email for the content links."],["This solution uses various Apps Script services like Script service, Document service, Mail service, and Spreadsheet service to manage triggers, templates, emails, and responses."]]],["This Apps Script solution automates sending curated content to users via email based on their Google Forms submissions. Upon each form submission, an event-driven trigger activates the script. The script then uses a Google Docs template to generate a personalized email that includes the user's name and links to content they selected. It uses the Script service to install a trigger, the Document service to open the template, the Mail service to send the email, and the Spreadsheet service to record the sending status.\n"]]