correctly attach PDF to email