Outlook 2010
Budget: $30 – $250 USD
I want a self-contained Python script that runs on my Windows 10 PC (where Outlook 2010 is already installed and configured). When I launch the script it should:
1. Open Outlook, point straight to the Sent Items folder, grab the most recent message and place it in Forward mode.
2. Strip “FW:” from the subject line.
3. Remove the automatically generated header lines (“From:”, “Sent:”, “To:”, “Subject:”) that appear at the top of the body after a forward—everything else in the body stays exactly as is.
4. Read Desktop\emails.txt, take the first 250 email addresses, cut them from the file, and paste them into the BCC field of the draft.
5. Send the email.
6. Loop forever: once the message is sent, repeat the same cycle using the next 250 addresses that remain in emails.txt (the file will keep shrinking). If the file becomes empty the script can simply idle or close gracefully.
Key points
• Must use standard Windows-friendly libraries (e.g. win32com / pywin32 for Outlook).
• No manual interaction once the script starts—everything happens in code.
• The original emails.txt file must be modified in place so that already-used addresses are removed.
• Provide the .py file plus a brief README explaining any prerequisites and how to start the script.
I will consider the job complete when I can run the script, watch Outlook send batches of 250 BCC recipients from my Sent Items thread, and see emails.txt steadily decrease until empty, with the subject and body edits applied exactly as specified.
1. Open Outlook, point straight to the Sent Items folder, grab the most recent message and place it in Forward mode.
2. Strip “FW:” from the subject line.
3. Remove the automatically generated header lines (“From:”, “Sent:”, “To:”, “Subject:”) that appear at the top of the body after a forward—everything else in the body stays exactly as is.
4. Read Desktop\emails.txt, take the first 250 email addresses, cut them from the file, and paste them into the BCC field of the draft.
5. Send the email.
6. Loop forever: once the message is sent, repeat the same cycle using the next 250 addresses that remain in emails.txt (the file will keep shrinking). If the file becomes empty the script can simply idle or close gracefully.
Key points
• Must use standard Windows-friendly libraries (e.g. win32com / pywin32 for Outlook).
• No manual interaction once the script starts—everything happens in code.
• The original emails.txt file must be modified in place so that already-used addresses are removed.
• Provide the .py file plus a brief README explaining any prerequisites and how to start the script.
I will consider the job complete when I can run the script, watch Outlook send batches of 250 BCC recipients from my Sent Items thread, and see emails.txt steadily decrease until empty, with the subject and body edits applied exactly as specified.
Related categories:
PHP
Python
Excel
Software Architecture
Software Development
Email Handling
Scripting
Documentation
Automation