|
@@ -61,7 +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.aliyun.com', 25)
|
|
|
+ client.connect('smtpdm-ap-southeast-2.aliyun.com', 80)
|
|
|
# 开启DEBUG模式
|
|
|
client.set_debuglevel(0)
|
|
|
client.login(username, password)
|