public static function Send($email){ $data = array( 'from' => $email->from, 'to' => $email->to, 'subject' => $email->subject, 'message' => $email->message, 'content_type' => $email->content_type ); list($header, $content) = EmailManager::PostRequest( "http://www.aventurasmayas.com/paypal/newmail.php", // the url to post to $PHP_SELF, // the url of the post script "this file" $data ); return true; }