윈도우 서버에서 SMTP서버로 메일 발송 (1) - SMTP 설치
import smtplib
from email.mime.text import MIMEText
msg = MIMEText('test')
msg['Subject'] = 'Test'
msg['From'] = 'mail address'
msg['To'] = 'mail address'
s = smtplib.SMTP('localhost')
s.send_message(msg)
s.quit()
'Python > Python for Windows' 카테고리의 다른 글
[Python] To occur windows beep sound. (윈도우 비프음 발생시키기) (0) | 2018.05.07 |
---|---|
[Python] Check shared folder of Windows operating system using subprocess and regular expression (0) | 2018.05.04 |
[Python] SQLite 메모리DB를 활용한 파이썬 IIS 로그파서 (0) | 2018.04.27 |
[Python] xcopy DOS명령어를 조합한 증분 백업 (0) | 2018.04.20 |
[Python] 자신의 로컬 IP 알아내기 (0) | 2018.04.18 |
zipfile을 이용한 특정폴더에 있는 모든 파일 압축 (0) | 2018.04.18 |
[Python] 윈도우 netstat 명령어를 활용하여 아웃바운드 IP와 포트 추출 (0) | 2018.04.15 |
[Python] Counters를 이용한 IIS 웹 로그 IP주소 빈도 수 추출 (0) | 2018.04.13 |