本文整理汇总了Python中askomics.libaskomics.ParamManager.ParamManager.send_mails方法的典型用法代码示例。如果您正苦于以下问题:Python ParamManager.send_mails方法的具体用法?Python ParamManager.send_mails怎么用?Python ParamManager.send_mails使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类askomics.libaskomics.ParamManager.ParamManager
的用法示例。
在下文中一共展示了ParamManager.send_mails方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_send_mails
# 需要导入模块: from askomics.libaskomics.ParamManager import ParamManager [as 别名]
# 或者: from askomics.libaskomics.ParamManager.ParamManager import send_mails [as 别名]
def test_send_mails(self):
m = ParamManager(self.settings, self.request.session)
m.send_mails("bidon_url","[email protected]","Subject","Message")
m.set_param('askomics.smtp_host','smtp.test.fr')
m.send_mails("bidon_url","[email protected]","Subject","Message")
m.set_param('askomics.smtp_port','20')
m.send_mails("bidon_url","[email protected]","Subject","Message")
m.set_param('askomics.smtp_login','test')
m.send_mails("bidon_url","[email protected]","Subject","Message")
m.set_param('askomics.smtp_password','test')
m.send_mails("bidon_url","[email protected]","Subject","Message")