from suds.client import Client
url = 'http://msgcccffffsdd.com/Messaging.asmx?wsdl'
client=Client(url)
header={'UserId':'mmmmm','Password':'swwwwww4'}
client.set_options(soapheaders=[header,])
res=test.service.SendGroupMails(TO,CC,Subject,Body,Smtpld,SmtpPassword,SmtpAddress,NoteAddress,NotesPassword)
if res[0][0].find(",1,") !=-1:
print('连接成功')
else:
print('连接失败')