Okay mit scrit giver dette error:
The following SMTP Error: Data not accepted.(Email)
Alt virkede med samme info dagen før.
Og alle andre mails på den smtp server virker fint Med en mail client så det er php scripted der laver error.
Php script:
$subjectss = "xxxxx - Member";
$messagess = "<b>
Dear ". $firstname ." ". $lastname ."<br>
<br>
<br>
We have recieved your order, and we will process it as soon as possible. This will take under 24 hours.<br>
<br>
<br>
Here is the login information for your account on our website. You can use this account to view your invoices and get access to your gameserver controlpanel<br>
<br>
<br>
Username: ". $username ."<br>
<br>
Password: ". $password ."<br>
<br>
<br>
Before you will be able to use your account, please activate it at the following link below:<br>
<br>
http://www.xxxxxxxx.eu/activate.php?id=". $id ."<br>
<br>
<br>
Your order information<br>
<br>
<br>
Game: ". $game ."<br>
<br>
Tickrate: ". $tickrate ."<br>
<br>
Slots: ". $players ."<br>
<br>
Duration: ". $month ."<br>
<br>
<br>
You will recieve another email when your server is ready for use<br>
<br>
Dont hesitate to contact us for any questions!<br>
<br>
<br>
If you didnt place this order, please inform us!<br>
<br>
<br>
Best regards<br>
<br>
xxxxxxx.eu
</b>";
$toss = $email;
require("class.phpmailer.php");
require("phpmailer.lang-en.php");
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->Host = "mail.xxxxxx.dk";
/*$mail->SMTPDebug = "2";*/
$mail->SMTPAuth = false;
$mail->Username = "support@xxxxxxxx.eu"; // SMTP username
$mail->Password = "xxxxxxx"; // SMTP password
$mail->From = "support@xxxxxxx.eu";
$mail->FromName = "support@xxxxxxx.eu";
$mail->AddReplyTo('support@xxxxxxx.eu', 'Support');
$mail->AddAddress("". $toss ."", "Support");
$mail->IsHTML(true);
$mail->Subject = "". $subjectss ."";
$mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
$mail->Body = "". $messagess ."";
$mail->WordWrap = 50;
if(!$mail->Send()) {
echo "Mailer Error: " . $mail->ErrorInfo;
} else {
$mail->ClearAddresses();
$mail->SmtpClose();
echo $button;
echo "<p style='Georgia; color:white; font-size:16px'>";
echo "<br/>Server added in query - Now only thing you need to do is to pay.";
echo "Also check mail for account info and sale info!<br>";
echo "</p>";
}
}
?>
Håber i kan hjælper her inde :-)