Help with a script for emailing invoices
Use send mail or an email plug in. Can be scripted or manual. Can be from email client or SMTP. May need to take precautions to avoid getting blacklisted as an email spammer.
(you've posted a general question completely devoid of specifics. A general question will get a general answer as that's really about all we can do unless you help us to help you.)
Thanks Phil:-) I have a invoice database . 50 Tenants have requested their monthly invoices be emailed . I have a field that allows me to perform a find of these tenants. I can copy and paste to email obviously but it has becom tedious with so many. Is there a way I can perform a find and then automatically send?
but you still haven't shared much in terms of specifics.
Do you have a script that generates a PDF of each invoice?
If so, you can set up a looping script that generates an invoice, then attaches it to an email that is sent to the tenant, then repeats with the next tenant.
You could put such info into the email body, but Send Mail creates plain text only emails and this limits the results quite a bit so that option may or may not work for you unless you generate an HTML formatted version of the email and then use an email plug in that support such formatting to send the email. I would recommend sending email via SMTP over an Email client application as it avoids issues with selecting and using a compatible email client program--which may then need to be changed the next time that you update either client email or FMP.
Retrieving data ...