Attach pdf to email
I am trying to attach a pdf to an email. I will upload a screenshot of the script. It was working before but now it does not work. I do not know why it does not work anymore since I did not change the script. I only changed the layout order in manage layout. When I click the button to send the email, it creates the pdf on the desktop but it does not attach the pdf to the email.