solve the pdf issue while sending email