- 0
- 이니스프리
- 조회 수 238
1 2 3 4 5 6 7 8 9 10 11 | from redmail import gmail from pathlib import Path gmail.username = 'G메일주소@gmail.com' gmail.password = '구글앱비번' gmail.send( subject = "제목" , receivers = [ '받을사람이메일주소' ], text = "메일내용" , attachments = { '파일명' : Path( '파일경로' )} ) |
Gmail에 접속하여 メール에 사용할 앱비밀번호를 설정해야 합니다 ^^
앱비밀번호 설정 참고 : https://docs.3rdeyesys.com/99.etc/etc_smt_auth_to_google_gmail_account
Seba님 포함 2명이 추천
추천인 2
작성자
댓글 0
권한이 없습니다.