ferrero-opentext/Python-Version/scripts/shared
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
..
__pycache__ Fix DAM search to use GET with query parameters and correct client secret 2025-10-30 17:31:35 -04:00
__init__.py Start Python automation - Foundation components 2025-10-30 16:38:26 -04:00
box_client.py Complete Python automation implementation - All components built 2025-10-30 16:49:14 -04:00
config_loader.py Start Python automation - Foundation components 2025-10-30 16:38:26 -04:00
dam_client.py Fix DAM search to use GET with query parameters and correct client secret 2025-10-30 17:31:35 -04:00
database.py Complete Python automation implementation - All components built 2025-10-30 16:49:14 -04:00
filename_parser.py Complete Python automation implementation - All components built 2025-10-30 16:49:14 -04:00
metadata_extractor_mvp.py Complete Python automation implementation - All components built 2025-10-30 16:49:14 -04:00
notifier.py Add Mailgun SMTP credentials and update notifier to use SMTP 2025-10-30 17:36:02 -04:00