Hi - how did you set up the script to export and email - just posted to get advice on how to do it!
as my script below shows I firstly define a variable, save that out as a pdf using save record command, then the send e-mail function to auto attached using the variable as the reference...
- Set Variable [ $invoicefilename; Value:Invoice::Invoice Number & " " & Contacts::Company ]
- Save Records as PDF [ File Name: “$invoicefilename”; Current record ] [ Document - Title: Invoice::Invoice Number; Compatibility: Acrobat 5 and later ] [ Pages - Number Pages From: 1; Include: All pages ] [ Security - Printing: High Resolution; Editing: Any except extracting pages; Enable copying; Enable Screen Reader ] [ Initial View - Show: Pages Panel and Page; Page Layout: Single Page; Magnification: 100% ] [ Restore; No dialog ]
- Send Mail [ Send via E-mail Client; To: Contacts::Email Address with Name; BCC: "email@example.com"; Subject: "Invoice for xxxxx Festival 2009"; Message: "Please find attached your invoice for trading this year on xxxx Festival.¶¶Regards¶¶xxxxx Market Team"; Attachment: “$invoicefilename” ]
Driving me mad as should be so simple to fix!
it seems to drop off the .pdf extension
Try starting with:
Set Variable [ $invoicefilename; Value:Invoice::Invoice Number & " " & Contacts::Company & ".pdf" ]
annoyingly obvious. thank you!
This post just made my morning. Thank you...