import smtplib from email.mime.text import MIMEText from email.header import Header host = 'smtp.gmail.com:587' me = 'me@gmail.com' you = 'you@daum.net' subject = 'I love ํ์ด์ฌ' contents = 'It is contents' msg = MIMEText(contents.encode('utf-8'), _subtype='plain', _charset='utf-8') msg['Subject'] = Header(subject.encode('utf-8'), 'utf-8') msg['From'] = me msg['To'] = you s = smtplib.SMTP(host) s.starttls() #print( s.ehlo() ) s.login('ID','PASS') problems = s.sendmail(me, [you], msg.as_string() ) #print( problems ) s.quit()
9/01/2014
Python send mail example, smtplib
Subscribe to:
Post Comments (Atom)
-
Logistic Classifier The logistic classifier is similar to equation of the plane. W is weight vector, X is input vector and y is output...
-
error: . VanillaPipeline.get_train_loss_dict: 12.6875 Traceback (most recent call last): File "/home/mare/anaconda3...
-
Google Coral USB Edge TPU Implementation Guide 1. Installation and Troubleshooting 1.1 Hardware Requirements Google Coral USB Accelerator ...
-
Image size of origin is 320*240. Processing time is 30.96 second took. The result of stitching The resul...
-
template < int INT> void AAA() { std::cout << "INT = " << INT << std::endl; } How to Call...
-
install Claude Code using this shell script . #!/bin/bash # install-claude.sh # Installs Node.js 18+, npm, and Claude Code CLI, handling co...
-
fig 1. Left: set 4 points (Left Top, Right Top, Right Bottom, Left Bottom), right:warped image to (0,0) (300,0), (300,300), (0,300) Fi...
-
This article is the method about line fitting in 3d points. If we have these 3d points, how to find best 3d line? The main conc...
-
// ============================================================================ // SIMPLE COMPARISON: TUPLE vs VECTOR // When to use which...
-
C++ Template Parameter Packs with sequence Simple Explanation sequence<x,x,x> is a template that holds a compile-time list of int...
No comments:
Post a Comment