mn2 = MailNotifier(fromaddr="buildbot@example.org",
sendToInterestedUsers=False,
mode = 'all',
extraRecipients=['my@gmail.com'])我尝试使用上面的代码发送电子邮件。但它不会向我的gmail帐户发送任何通知。可能的问题是什么?
发布于 2015-07-30 11:15:31
你似乎遗漏了一个重要的属性,relayhost。您的日志中可能有错误,从它尝试发送,但被拒绝。他是我的一个师父的例子:
buildbot.status.mail.MailNotifier(
fromaddr = from_email,
sendToInterestedUsers = False,
extraRecipients = ['me@mydomain.com'],
mode = 'change',
relayhost = 'relay.mydomain.com')https://stackoverflow.com/questions/31684009
复制相似问题