PHP mail() not working.

Status
Not open for further replies.

pro37

New Member
Messages
2
Reaction score
0
Points
0
This script used to work fine but it does not seem to work anymore. My site is on Boru if that helps.

PHP:
<?phpif(isset($_POST["name"], $_POST["email"], $_POST["msg"])){	$to = "<Blocked Out Personal Email Address>";
	$subject = "New Message From " . $_POST["name"];
	$body = "Name: " . $_POST["name"];	$body .= "\r\nEmail: " . $_POST["email"];	$body .= "\r\n\r\nMessage:\r\n" . $_POST["msg"];
	$headers = "Content-type: text/plain; charset=windows-1251 \r\n"; 	$headers .= "From: me@andrewlee.co.cc\r\n";
	if(mail($to, $subject, $body, $headers)){		echo 1;	}	else{		echo 2;	}}else{	header("Location: ../");}?>


---------- Post added at 09:22 PM ---------- Previous post was at 09:19 PM ----------

Since the code is unreadable in my first post and for some reason I can't even edit my first post:

PHP:
This script used to work fine but it does not seem to work anymore. My site is on Boru if that helps.
[PHP]<?phpif(isset($_POST["name"], $_POST["email"], $_POST["msg"])){	$to = "<Blocked Out Personal Email Address>";$subject = "New Message From " . $_POST["name"];$body = "Name: " . $_POST["name"];	$body .= "\r\nEmail: " . $_POST["email"];	$body .= "\r\n\r\nMessage:\r\n" . $_POST["msg"];$headers = "Content-type: text/plain; charset=windows-1251 \r\n"; $headers .= "From: me@andrewlee.co.cc\r\n";
if(mail($to, $subject, $body, $headers)){echo 1;	}else{	echo 2;}}else{header("Location: ../");}?>
[/php]
 

Driminary

New Member
Messages
12
Reaction score
0
Points
0
Not sure whether email (be that PHP or normal) is working at all on Boru, neither my PHP mail() nor my normal POP/IMAP emails have been working since the 9th April, guess they're still working on it?
 
Status
Not open for further replies.
Top