For a new project which is done in PHP with the laravel framework we need to give every user an email address out of his first and surname. There will be no user without a firstname and surname.
This will be the syntax of the email address: firstname.surname@ourdomain.com
So here are the user-given variables firstname and surname.
The problem here is that the firstname and surname is not standardized. For example there can be the character "é" or the umlaut "ü" etc. etc.
What would be the best way to convert the combination of "firstname.surname" to a RFC 5322 compliant address?
Thanks in advance!