Send PDF in email
I have a script set up to send an email with an attached pdf of a "work order". Everything works great except the attachment. My filename i have set to be the "work order number". However, it doesnt save it with an extension. The attachment will just be "123456" and not "123456.pdf" like it is supposed to be. Ive attached my script. What am I doing wrong?