A complete script that sends emails with attachments (built within the script itself) using the Web API