How to send PDF attachments based on a field's selection?