Post to Node.js Server from Within HTML e-mail -


i writing simple mailing application, not yet aware of full capabilities of html editing within mailing world.

i give website administrator choice accept or refuse reservation sending him overview of reservation. below in mail had 2 buttons in mind, accept & refuse.

i tried using form within html e-mail every mailing client blocks out.

is there method http post command let's myserver.com/accept or myserver.com/refuse within e-mail without having open additional webpage?

if not, best way achieve such things?

this pretty relevant article: https://www.sitepoint.com/forms-in-email/

basically concludes support not reliable should not use forms in emails agree with.

since want give choice website administrator think want sort of authentication. see working this...

  1. send admin email containing 2 links mysite.com/reservations/:reservation_id/accept , mysite.com/reservations/:reservation_id/refuse.

  2. admin clicks on 1 of links

  3. link opens in browser , site(controller -> reservationservice) accepts or refuses based on id , action in url

you have few things consider, such authentication(i assume have since have notion of website admin?), authorization(can admin accept or deny reservation?), reservation exist, has admin accepted or denied reservation, etc.


Comments

Popular posts from this blog

serialization - Convert Any type in scala to Array[Byte] and back -

matplotlib support failed in PyCharm on OSX -

python - Matplotlib: TypeError: 'AxesSubplot' object is not callable -