Well, the first thing to do is make sure the PDF is created BEFORE you create the email message. I don't have any Notes code lying about to attach files, but that should be straightforward enough as you already have the filename in your current code.