Machan,
wht you going to do is sending email with out authenticatoion of smtp.
My suggestion is create a mail account and use that username and password and send mails.
<?php
require_once "Mail.php";
$from = "<from.gmail.com>";
$to = "<to.yahoo.com>"...