php -r "$from = $to = 'param.vasan@gmail.com'; $x = mail($to, 'testing from php cli', 'Hello World', 'From: '. $from); var_dump($x);"