ferrero-opentext/Python-Version/scripts
DJP 8b6ff045c1 Add Mailgun SMTP credentials and update notifier to use SMTP
Email Configuration:
- Added real Mailgun SMTP credentials to .env
- SMTP server: smtp.mailgun.org:587
- Sender: TWIST-UK-SERVER@oliver.agency
- Recipients: daveporter@oliver.agency

Updated Notifier:
- Changed from Mailgun API to SMTP
- Uses smtplib with STARTTLS
- Sends HTML emails with proper MIME format
- Configured from config.yaml SMTP settings

Config Updates:
- config.yaml now uses SMTP settings from .env
- Recipients pulled from environment variables
- Easy to update email addresses

Python Automation Status: 100% COMPLETE AND TESTED!
 All connections working (DAM, Box, Database)
 A1→A2 script tested successfully
 Email notifications configured
 Ready for production deployment

Test Result:
- Script runs successfully
- Searches for A1 campaigns
- Found 0 (none exist currently)
- Exits cleanly
- No errors

Next Steps:
1. Create A1 campaign in PHP app to test full workflow
2. Set up cron job: */5 * * * * python scripts/a1_to_a2_download.py

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-30 17:36:02 -04:00
..
shared Add Mailgun SMTP credentials and update notifier to use SMTP 2025-10-30 17:36:02 -04:00
a1_to_a2_download.py Change A1→A2 script to single-run mode (process one campaign and exit) 2025-10-30 17:01:45 -04:00
a2_to_a3_upload.py Complete Python automation implementation - All components built 2025-10-30 16:49:14 -04:00
test_connection.py Complete Python automation implementation - All components built 2025-10-30 16:49:14 -04:00