Send Mail with SMTP settings

i need to design a page where the forgotten password is sent by email to the user’s email id already present in the database before. User just needs to enter his user login name and the matching password is fetched from the database and mail is sent to corresponding email id using the mail server installed on the system.could sumbody help me on making the same and the “smtp settings” .

Sponsor our Newsletter | Privacy Policy | Terms of Service