Notice
Recent Posts
Recent Comments
Link
목록SendGridAPI (1)
SeouliteLab
파이썬으로 이메일 발송하기: SendGrid API 활용 방법
1. 단일 이메일 발송하기 SendGrid API를 사용하여 단일 이메일을 발송하는 예제를 살펴보겠습니다. import os from sendgrid import SendGridAPIClient from sendgrid.helpers.mail import Mail # SendGrid API 키 설정 sg_api_key = os.environ.get('SENDGRID_API_KEY') sg = SendGridAPIClient(api_key=sg_api_key) # 이메일 구성 message = Mail( from_email='from@example.com', to_emails='to@example.com', subject='Test Email', p..
카테고리 없음
2024. 4. 19. 08:57