Is there a PHP method to fetch the default email of a user? same effect if you would use mailto:
Example scenario:
If you use mailto:[email protected]
to open mail client it would automatically fill in the "From" field of the form with the user's email.
I want to do the same effect to my PHP form. I want to fill in with the default email address with the user email. so when they press contact, it would automatically fill in the email field with the users default email.
Is possible?
Note: should also be compatible with mobile phone, like iPhone and Android.
Thanks!
No, your PHP script cannot track your clients (users) and see what their email addresses are.
The mailto:
links only open the default mail client on the user's machine and fills in the proper details (taken from your mailto:
link).