Unknown error
Posted: Mon Mar 28, 2011 7:27 pm
Hello Experts,
I'm new in php.
I tried to use following codes but getting "Server error - HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request." in chrome and no response in FireFox.
I used exactly the same code in different file and working fine.
I really couldn't have figure out therefore writing here with hope that somebody will surely help me.
Thanks in advance.
I'm new in php.
I tried to use following codes but getting "Server error - HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request." in chrome and no response in FireFox.
Code: Select all
$myheaders = "MIME-Version: 1.0\r\n";
$myheaders .= "Content-type: text/html; charset=iso-8859-1\r\n";
$myheaders .= "From:Albert<'abc@xyz.com'>\r\n";
ini_set('sendmail_from', 'abc@xyz.com');
mail('def@hotmail.com',$subject,$body,$myheaders);
I really couldn't have figure out therefore writing here with hope that somebody will surely help me.
Thanks in advance.