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 [ ]
I have just downloaded the 360works Email plugin Sample and I am doing some tests to check whether this would solve my problem. I would like to be able to download all emails from my email account into "messages" table and then on each customer record show those emails which are related to that customer via a portal based on a relationship between, but what I can not figure out how to do it is that the portal would show but types of emails those marked as "from" emails and those marketd as "to" emails. So far I have created a relationship between Customers::email ------- Messages::From and the portal would show all "from" messages. If I would set the relationship as Customers:email ------ Messages:To, the portal shows all "to" messages, but what I am trying to make is a join portal that would show by date both "from" and "to" messages, then I plan to make a Conditional Formating saying that if Customers:email = Messages::From then all text in blue, and all text in green when it is TO.
Is this something that can be achieved?
Thanks a lot for any tip,
I have done some research on this but cannot make headway so any help would be much appreciated!
I am currently thus:
• Using FM 13 pro advanced to create a runtime solution for use on Windows 7 PC
• All well apart from when I go to a script to send an attachment by email... "email client not found" comes up...
Tried setting the default email client but it doesn't show in default programs in Win 7
Incidentally this system I created works ok in Mac! (but it won't be used on a Mac so...
Many thanks in advance,
I read that the new 3.01 version does not require Java.
When I run FMPAv16 on my Mac (10.11.6) and use the sample Email database it works just fine and I see nothing related to Java. I had the older v2.12 plugin installed on here and have just updated to v3.01 today.
When I run FMPAv16 on a different Mac (10.11.6) and install the v3.01 plugin (never had the plugin installed on this machine before today) and run the sample database a Java App runs without any windows, Just visible in the lower right dock and its single menu is titled "Java"
Any ideas as to this oddity?
I've spent a lot of time searching around to try to figure this out - to no avail.
I want to be able to send a single email (may be different each time the mailout is done) to multiple recipients that are the result of a find.
I've created the script and it works fine EXCEPT I get a separate email window pops up for every recipient, into which I then have to complete the Subject and contents - not what I was hoping for. Even to do it as a an email to a single address (our organisation) and all others gathered as BCC opens up separate windows for each found record.
Can someone please help me resolve this? If I can solve it for this list, then I can apply the same principle to the other 4 "finds" I need to be able to do.
Using FMP12 Advanced on Mac (so using Mail), though the final product will be on Windows.