I have inherited a database in Filemaker 12 on Windows, but I am completely new to databases. I have a script which generates and saves a pdf for each person using fields from their record. This works well.
I then have a second script which is meant to email each of these pdfs to the corresponding person. I have included screen shots of the script and the "send mail" options.
When I tested it by putting only my own email address in the To: box, it sent me hundreds of emails each with a different name in the text, and the correct corresponding pdf attached, as expected.
Very embarrassingly, when I tried to send the pdfs out, it sent an email to each person with the right name in the body of the text, but all with the same email attachment (for the first person in the list)! What did I do wrong?
Thank you in advance for any advice you can offer.
I've been using FMP13 on MacOSX 10.12.6 with Apple Mail to send FMP-generated emails with attached PDFs.
I recently switched from Apple Mail to Airmail, and it is now impossible to send emails from FMP.
Does anyone know if Airmail can send mail with attachments on Sierra MacOS 10.12.6, if I upgrade to FMP16?
That's the only reason I might really need to upgrade, and since upgrading to FMP16 will also require a few new computers to run the new OS that the new FMP demands, I'd rather not spend all that money now if I can avoid it.
I'm using 360 works eMail Plugin with FM Pro Advanced 16 and FMS 16 with success. I try to use last version 3.05 with Filemaker Cloud, but I have an issue with the "GetNextMessage". This command doesn't work. I can see Mailboxes, number of messages and so on, but reading message is impossible.
Someboby has a solution ?
I have been asked to set up something that will send out email automaticly when the date in the "review date" field is 14 days prior to the current date, can someone help me with a script that would be able to perfom this task? I have also created and email field that will hold the email address.
I am using EmailRecipients () , and we have noticed that sometimes duplicate emails are being sent. I had one customer who said they received 10!
any ideas? My script is:
Set Variable [ $result ; Value:EmailConnectSMTP("smtp.gmail.com:465";"info@**********.com";"*********";"ssl=1") ]
If [ $result ≠ 1 ]
Show Custom Dialog [ Message: EmailLastError & ¶ & "Feedback emails failed! Password most likely wrong. Tell Doc."; Default Button: “OK”, Commit: “Yes” ]
Go to Layout [ original layout ]
Exit Script [ ]
#send email to foundset
Go to Record/Request/Page [ First ]
Loop Set Variable [ $first ; Value:patients::first ]
Set Variable [ $email; Value:patients::email ]
Set Variable [ $subject; Value:$first & ", Happy Birthday from Colonial Family Eyecare!" ]
Set Variable [ $msgCreate ; Value:EmailCreate( "info@************.com";patients::email ;$subject ) and EmailSetBody( $$body)
Set Variable [ $setRecipients ; Value:EmailRecipients($email) ]
Set Variable [ $sent; Value:EmailSend ]
If [ $sent ≠ 1 ]
Show Custom Dialog [ Message: EmailLastError; Default Button: “OK”, Commit: “Yes” ; Button 2: “Cancel” , Commit: “No” ]
Go to Record/Request/Page [ Next; Exit after last ]
End Loop Set Variable [ $disconnect ; Value:EmailDisconnect ]
If [ $disconnect="ERROR" ]
Show Custom Dialog [ Message: EmailLastError; Default Button: “OK”, Commit: “Yes” ]
Exit Script [ ]
Who Viewed the Topic