我需要使用SMTP SSL /端口465和我的bluehost电子邮件发送电子邮件.
我在谷歌找不到工作代码我尝试超过5个代码.那么,是否有任何使用SMTP SSL /端口465发送电子邮件的工作代码?
我希望每个人都很好.我是一个新的python和itry很多运行此代码但我无法理解是什么问题以及我如何解决这个问题.
我的代码是:
from selenium import webdriver
from time import sleep
url = raw_input("Enter URL to get visits (With http://): ")
proxy_path = raw_input("Enter path to proxy file:")
with open(proxy_path) as f:
content = f.readlines()
f.close()
proxies = 0
with open(proxy_path) as infp:
for line in infp:
if line.strip():
proxies += 1
print 'Loaded %d proxies' %proxies
# For debugging purposes
#print content[run_through]
run_through = 1
while True:
#print "Start of loop"
print "Ran %s times" %run_through
try:
use_proxy = content[run_through] …Run Code Online (Sandbox Code Playgroud)