Is currently unable to handle this request. HTTP ERROR 500

When my form submits i get the following error

website.000webhostapp.com is currently unable to handle this request.
HTTP ERROR 500

Im trying to run a php script.

<?php
require_once "Mail.php";

$from = '<@gmail.com>';
$to = '<@gmail.com>';
$newsubject = $_POST['TITLE'];
$newbody = $_POST['MESSAGE'];
$newemail = $_POST['EMAIL'];
$newname = $_POST['NAME']; 

$subject = "$newsubject".' '. "Sent by -".' '."$newemail";
$body = "My name is".' '."$newname".' '."$newbody";




$headers = array(
    'From' => $from,
    'To' => $to,
    'Subject' => $subject
);

$smtp = Mail::factory('smtp', array(
        'host' => 'ssl://smtp.gmail.com',
        'port' => '465',
        'auth' => true,
        'username' => '@gmai.com',
        'password' => ''
    ));

$mail = $smtp->send($to, $headers, $body);

if (PEAR::isError($mail)) {
    echo('<p>' . $mail->getMessage() . '</p>');
} else {
    echo('<p>Message successfully sent!</p>');
}
?>

Try to enable error reporting

Hi my friends i have the same pronlem. I have no any cpanel or ftp account to access files. I have only wp-admin user name and password. But i coildnt access wp-admin due to the above problem. I am very happy if any one can help me.

Hi @Amamuela!

What is the website in question?

http://simienethiopiatours.com/ is my website. But it doesn’t work due to plugin conflicts. I couldn’t sign in WP-admin. and i have no Cpane or FTP access to resolve it. please help me

@Amamuela [quote=“Amamuela, post:5, topic:43015”]
http://simienethiopiatours.com/
[/quote]
Your website is not hosted here at 000webhost.
Contact your hosting support.