A working PHP script that uses a local file as an attachment via the Web API.