Hi Jim, Sorry if this this is not a very helpful answer for you, but ..
I think it isn't a very good idea to have a button (in an email or whatever) the user have to press and nothing happens immediately. Some seconds, minutes, hours later the user gets the answer, usually he doesn't realize what's going on, I think. And opening and closing a browser window immediately maybe will lead to calls to the IT department: "I think my workstation is infected" A suggestion: The browser window will open with a short message, informing the user that he will get an acknowledgment email later. The email is for the records and contains additional information. But maybe I'm totally wrong with these advices because I don't know your exact use case, the context and so on ... So these are only my 2 cents Regards Lutz > -----Original Message----- > From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Jim Hays via > 4D_Tech > Sent: Thursday, July 20, 2017 8:33 PM > To: 4D iNug Technical <4d_tech@lists.4d.com> > Cc: Jim Hays <jgha...@gmail.com> > Subject: Put a button in an email that won't open a web page > > TL;DR: > > Click a button in a typical marketing email. It always opens a web page. > Is there any way to have the button click send a message to a (web) server > without having a web page open? > > > Details: > > Send an email with a button in it. > The recipient clicks the button to confirm an agreement. > The 4D Server then sends a followup email indicating the confirmation is > received. > > The email is in HTML format. > The button has an href that points back to the 4D web server. > 4D server sends the confirmation received email. > > That's all working nicely. > > Our href looks like this: > http://10.0.0.8:8080/confirm?539D36962A0A45478F0538EE894A4D5358CBB76FAED5 > 9F44B32DEEA97B22F3B4 > " > > Because we are doing a simple web call, the user's default browser opens up > with a web page. > This is what we are trying to avoid. > > As far as I know, stuffing javascript into an html email is a big no-no. > (We don't know what mail client the recipient will use.) > > > Bonus if you read this far - some cool HTML email tools! > https://mjml.io > markup language to generate compatible html mail > > https://litmus.com > test html in up to 70 mail clients > > > Thanks for any ideas! > > Jim Hays > ********************************************************************** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ********************************************************************** ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************