My implementation requires attaching the same file, eg "download.zip" to the emails.
After testing some code snippets that I found via Google for multi-part mime attachments, I debugged them and inserted the code into example.php:
Tested in Yahoo, Gmail, SMTP via Thunderbird