
Originally Posted by
fortwienix
try to do
PHP Code:
ini_set('sendmail_from', 'me@domain.com');
and optional:
PHP Code:
ini_set("SMTP","smtp.domain.com" );
before calling mail(). If that doesn't work, you can make an SMTP connect to the server where your mail account is hosted. That needs of course username and password in your script that is opening the connection.
That didnt work either 
Here is the complete script:
HTML Code:
<html>
<title>SMS System | SMS Sent</title>
<head>
<style type="text/css">
body {background-color: black; color: white}
a {color: red}
p {margin-left: 20px}
</style>
</head>
<body>
<center>
<?php
if ($_POST["carriers"] == "vtext") $to = $_POST["num"]."@vtext.com";
if ($_POST["carriers"] == "att") $to = $_POST["num"]."@txt.att.net";
if ($_POST["carriers"] == "lilman") $to = $_POST["num"]."@cingularme.com";
if ($_POST["carriers"] == "next") $to = $_POST["num"]."@messaging.nextel.com";
if ($_POST["carriers"] == "tmo") $to = $_POST["num"]."@tmomail.net";
if ($_POST["carriers"] == "rtb") $to = $_POST["num"]."@messaging.sprintpcs.com";
if ($_POST["carriers"] == "bst") $to = $_POST["num"]."@myboostmobile.com";
if ($_POST["carriers"] == "vdf") $to = $_POST["num"]."@sms.vodafone.it";
$subject = "";
$from = "sms-noreply@darkjournal.co.cc";
$message = $_POST["mess"];
$headers = 'From: sms-noreply@darkjournal.co.cc' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
ini_set('sendmail_from', 'sms-noreply@darkjournal.co.cc');
mail($to,$subject,$message);
?>
<h1>SMS Sent!</h1><br>
<a href="http://darkjournal.co.cc/start-sms.php">Go Back to Home</a>
</center>
</body>
</html>