FredP Posted June 2, 2008 Share Posted June 2, 2008 I have a script that writes out a pdf and then tries to send an email and attach the pdf. And for some reason, the attachment part is not working. My Script sets up $$Fname which is the path and filename for the pdf. $$Fname seems to work, because it writes out the PDF perfectly. But when it comes time to attach $$Fname to the email, the attachment doesnt work. I set up $$Fname as: "filewin:" & $$PcDir & Filter($$Employee ; "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz") & ".pdf" And it writes out the file just fine when i put $$Fname as the filename of the output file. But when I put the variable $$Fname as the attachment name to add to the email, it does not work. To make matters worse, it does put an attachment on the email, but not the right file. Its an older version of the pdf its attaching, which makes no sense to me. Any Ideas? Link to comment Share on other sites More sharing options...
Recommended Posts