小编yuy*_*b0y的帖子

使用SMTP SSL /端口465发送电子邮件

我需要使用SMTP SSL /端口465和我的bluehost电子邮件发送电子邮件.
我在谷歌找不到工作代码我尝试超过5个代码.那么,是否有任何使用SMTP SSL /端口465发送电子邮件的工作代码?

python python-2.7

10
推荐指数
3
解决办法
3万
查看次数

chrome_options.binary_location()TypeError:'str'对象不可调用

我希望每个人都很好.我是一个新的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)

python python-2.7

3
推荐指数
1
解决办法
2852
查看次数

标签 统计

python ×2

python-2.7 ×2