script to email posthaven images as attachments