Jump to content

Can FM Send Mail via client function detect if the user pressed send?


Recommended Posts

  • Newbies

I have a script that when run opens the mail client with a order confirmation email to the customer and confirms the order in FileMaker.

But is there a way to check if the user actually pressed send on the email before confirming the order in FileMaker?

Link to post
Share on other sites
12 hours ago, JohnDing said:

But is there a way to check if the user actually pressed send

I don't think so. And even if there were, you wouldn't be able to tell if they didn't modify it before sending it. If you need to be sure, why don't you send it directly, instead of going through the mail client? Or perhaps you could send a copy to yourself, then check the incoming mail.

 

Link to post
Share on other sites
  • Newbies

It was not that i was afraid that they would modify the email or that is would get stuck in internet traffic.

I wanted to use it as a condition like:

if (userPressedSend){
  #continue script ...
  } else {
  #pause or stop script ...
}

but now when i type it out i can see some flaws with this idea.

But thanks for the input @comment

Link to post
Share on other sites

for macOS?

How good is your AppleScripting? 

You could trigger send, FileMaker passes email to Apple Mail. Then you can use AppleScript to query current window ID for the message composer. And regularly query again whether this window is still open.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Who Viewed the Topic

    1 member has viewed this topic:
    arni 
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.