ellescuba27
Member
- Messages
- 273
- Reaction score
- 3
- Points
- 18
I am certain; this is a server problem. I am getting Error 111 when I send emails. here is my PHPMailer code:
Because I have had this work, I have a hard time believing the code is the problem. I would rather not edit the phpmailer.class file. This is kind of urgent; help please!
(I have tried with SMTPDebug on; it gave me Error 111. I am not using an email outside of x10)
---------- Post added at 07:12 PM ---------- Previous post was at 04:24 PM ----------
Hello? Why isn't this a recent message I made it this morning; Please answer?
PHP:
<?php
require_once("phpmailer/class.phpmailer.php");
$error = null;
function smtpmailer($to, $subject, $message, $winerror, $failerror) {
if ($ismaillimittrue[1] < 100 || $ismaillimittrue[0] != $mltimestring) {
global $error;
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->Username = "[blocked]+[blocked]";
$mail->Password = "[blocked]";
$mail->Host = "mail.[blocked]";
$mail->Port = 25;
$mail->SMTPAuth = true;
$mail->SetFrom("[blocked]@[blocked]", "[my name]");
$mail->AddAddress($to);
$mail->AddReplyTo("[blocked]@[blocked]", "[my name]");
$mail->Subject = $subject;
$mail->Body = $message;
$mail->SMTPDebug = 0;
if(!$mail->Send()) {
$error = true;
echo $failerror;
} else {
$error = false;
echo $winerror;
}
if ($ismaillimittrue[0] == $mltimestring) {
mysql_query("UPDATE maillimit SET time='" + mysql_real_escape_string($ismaillimittrue[0]) + "', limit=" + ($ismaillimittrue[1] + 1) + " LIMIT 1");
$uerrorcheck .= "i";
} else {
mysql_query("UPDATE maillimit SET time='" + mysql_real_escape_string($mltimestring) + "', limit=0 LIMIT 1");
$uerrorcheck .= "j";
}
} else {
$error = true;
echo $failerror;
}
}
?>
(I have tried with SMTPDebug on; it gave me Error 111. I am not using an email outside of x10)
---------- Post added at 07:12 PM ---------- Previous post was at 04:24 PM ----------
Hello? Why isn't this a recent message I made it this morning; Please answer?
Last edited: