I want to implement an Email client using python smtp library. but I don't know:
1. how to run python code in cocoa? like
s = smtplib.SMTP()
s.connect("mail.yourdomain.com")
s.login(username, password) #login if needed
s.sendmail(mailfrom, mailto, mailbody)
s.quit()
2. can cocoa can get the error message from python smtp library?