Scenario:
-
I build a simple web based app for mobile that needs to interact with server via mail client. The Web App is in PHP.
-
In the Web App there’s a link opening a mail client of mobile phone. It would be using the
mailto:function and the code will look something like this
(<a href="mailto:linkrequest@system.com">Request Link</a>) -
This link would open the default mail client to send an empty message to the server.
-
The user needs to use mail client to send the empty message so it would just use it’s default email of the user and to avoid making the user type for it’s email.
-
After the server received the empty message it will automatically respond to the user with the data from the database.
The mailto: function will be located inside a webapp. When sending the message to the server it needs to be unique (probably put some encrypted code) so there would be a distinctive attributes on the mail that is going to the server. So with that distinctive attribute server can now determine which email it would respond automatically and would not respond.
What solution do you suggest to my problem?

You can specify additional attributes in the email by embedding them in the mailto url like this (the line breaks are here only readability and you won’t need to insert them into the URL):