| 1234567891011121314151617181920212223242526 |
- from datetime import datetime
- # 邮件配置
- EMAIL_CONFIG = {
- "recipients": ["recipient1@example.com", "recipient2@example.com"],
- "subject": f"自动化测试报告 - {datetime.now().strftime('%Y-%m-%d %H:%M')}",
- "sender_name": "自动化测试系统",
- "cc_recipients": ["zhangyu1999520@outlook.com"], # 抄送列表
- "bcc_recipients": [], # 密送列表
- }
- # SMTP服务器配置
- SMTP_CONFIG = {
- "smtp_server": "smtp.office365.com", # Outlook SMTP服务器
- "smtp_port": 587, # Outlook使用的端口
- "sender_email": "zhangyuroot@outlook.com", # 发件人邮箱
- "sender_password": "zhangyu923", # 发件人密码或应用密码
- "use_tls": True, # 是否使用TLS加密
- }
- # 邮件模板配置
- EMAIL_TEMPLATE_CONFIG = {
- "template_path": "templates/email_template.html",
- "company_name": "Your Company",
- "team_name": "QA Team",
- }
|