Selaa lähdekoodia

阿里云邮件推送:80端口

chenjunkai 6 vuotta sitten
vanhempi
commit
8e86425c25
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      Object/AWS/SesClassObject.py

+ 2 - 2
Object/AWS/SesClassObject.py

@@ -61,8 +61,8 @@ class SesClassObject:
            # python 2.7以上版本,若需要使用SSL,可以这样创建client
            # client = smtplib.SMTP_SSL()
            # SMTP普通端口为25或80
-           # client.connect('smtpdm.aliyun.com', 25)
-           client.connect('smtpdm-ap-southeast-2.aliyun.com', 80)
+           client.connect('smtpdm.aliyun.com', 80)
+           # client.connect('smtpdm-ap-southeast-2.aliyun.com', 80)
            # 开启DEBUG模式
            client.set_debuglevel(0)
            client.login(username, password)