Need Recommend for a Feature


I am Creating a wedding Website for which I want a feature below:-

1. When the guest reach to login page, Guest Logs-in using their email address. That address is first checked against the server list.

2. If the Server has the email address it then creates and sends a auto generated password to that address.

Thank You