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...
-
dp parameter is about resolution of voting space. dp is larger, voting resolution is small compare to image size. so dp is larger, circle...
-
line, circle, rectangle, ellipse, polyline, fillConvexPoly, putText, drawContours example source code!!. ... //http://study....
-
In past, I wrote an articel about YUV 444, 422, 411 introduction and yuv rgb converting example code. refer to this page -> http://feel...
-
I once wrote the following article. http://study.marearts.com/2014/04/opencv-study-mat-point-access-method.html This article is a sample c...
-
Mounting Remote Data for GPU Training This guide explains how to access data from Computer A (data server) on Computer B (GPU machine) for...
-
//Singular value decomposition : Mat w, u, v; SVDecomp(data, w, u, v); // A = U W V^T //The flags cause U and V to be returned transpose...
-
refer to this code: . # If you want to combine a Vision Transformer (ViT) as an encoder with a Transformer-based decoder, # you can follow t...
-
The latent SVM tells the learning method used in this paper -> "Discriminatively trained deformable part models". The authors s...
-
EMD(earth mover distance) method is very good method to compare image similarity. But processing time is slow. For using the EMD compare, ...
No comments:
Post a Comment