Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 29947

Send mail using Python- Error

$
0
0

I quite new in programing in python. When i try to send an e-mail using python 2.7, i get an error:

from email.mime.text import MIMETextimport smtplibmsg = MIMEText("Hello There!")msg['Subject'] = 'A Test Message'msg['From']='kolsason7@walla.com'msg['To'] = 'yaron148@gmail.com's = smtplib.SMTP('localhost')s.sendmail('kolsason7@walla.com',['yaron148@gmail.com'],msg.as_string())print("Message Sent!")  File "C:\Python27\ArcGISx6410.3\lib\socket.py", line 571, in create_connectionraise errerror: [Errno 10061] >>> 

Viewing all articles
Browse latest Browse all 29947

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>