Configured correctly...email NOT WORKING!

Status
Not open for further replies.

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:
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;
}
}
?>
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?
 
Last edited:

ellescuba27

Member
Messages
273
Reaction score
3
Points
18
Cmon guys... know it's busy, but if you fix it, please leave a response. Seems to be fixed now... yeah!
 

vfmrcx10

New Member
Messages
5
Reaction score
0
Points
0
hey. bro. did you set your mx entry to local? can you actually send mail to other accounts like me@yahoo.com or she@gmail.com using your webmail? if it is, can you help me also? this is also my problem. if you can't, then we are both screwed :))
 
Status
Not open for further replies.
Top