Send_mail();..............please help.

Hi Again,

Thanks for your help…this forum is really good…guys please help me in send_mail(); function in php…Here’s the coding…

function forgotpass_mail($username,$pass)  // send the userid and passsword to the admin.
	{
		$fromname = "DID - Support";
		$fromemail = "rambo@gmail.com";
		$toname = "DID - Admin";
		$toemail = "rambo@gmail.com";
		//$bcc = "myname@yahoo.com";
		//$bcc = "padmaja@yahoo.com";
		$subject = "DID - Forgot Password Request";
		
		$message = "Dear Administrator,<br><br>
		
	Your password has been reset successfully. Here are your new login details:<br><br>
	
Username : ".$username."<br>
Password : ".$pass."

<br><br>
Regards,<br>
DID - Support
";
		$this->send_mail($fromname, $fromemail, $toname, $toemail,$bcc, $subject, $message);
	}
}

Thanks in advance

Where is the send_mail() ?