+ Reply to Thread
Results 1 to 5 of 5
Like Tree1Likes
  • 1 Post By ellescuba27

Thread: PHPMailer help...again

  1. #1
    ellescuba27 is online now x10 Sophmore ellescuba27 is an unknown quantity at this point
    Join Date
    Sep 2011
    Posts
    150

    PHPMailer help...again

    So unfortunately, I need help with PHPMailer again. I have a pretty poor knowledge with PHPMailer or any PHP at all, really. But my problem is I can't connect to SMTP host. I get error 111 when debugging "The connection was refused by the server".

    Here is my code:
    PHP Code:
    <?php
    require_once("phpmailer/class.phpmailer.php");
    $error null;
    function 
    smtpmailer($to$subject$message$winerror$failerror) {
    global 
    $error;
    $mail = new PHPMailer();
    $mail->IsSMTP();
    $mail->Host "mail.theeducator.elementfx.com";
    $mail->SMTPDebug 0;
    $mail->SMTPAuth true;
    $mail->Port 25;
    $mail->Username "(username blocked)";
    $mail->Password "(password blocked)";
    $mail->SetFrom("(email blocked)""The Educator");
    $mail->AddReplyTo("(email blocked)""The Educator");
    $mail->Subject $subject;
    $mail->Body $message;
    $mail->AddAddress($to"Our Friend");
    if(
    $mail->Send()) {
    $error false;
    echo 
    $winerror;
    } else {
    $error true;
    echo 
    $failerror;
    }
    }
    ?>
    Now here's a question. Recently I signed up for dot.tk with my subdomain. I set it to forward to my address, so I figured it wouldn't be a problem, but I wonder if that is the cause? Everything seemed to be working before with the exact same code. Also, just this morning, there was an alert about issues with the datacentre, so that could also be the cause. Whatever it is, I hope I can solve it soon, because this is not just emails to myself anymore (I have not reached the 100 mail limit yet, just so you know).
    frienzonemail29 likes this.

  2. #2
    ellescuba27 is online now x10 Sophmore ellescuba27 is an unknown quantity at this point
    Join Date
    Sep 2011
    Posts
    150

    Re: PHPMailer help...again

    Somebody help me please? The randomness of it is the most annoying part!

  3. #3
    charliehickling60 is offline x10Hosting Member charliehickling60 is an unknown quantity at this point
    Join Date
    Oct 2011
    Posts
    1

    Re: PHPMailer help...again

    Odd...

  4. #4
    ellescuba27 is online now x10 Sophmore ellescuba27 is an unknown quantity at this point
    Join Date
    Sep 2011
    Posts
    150

    Re: PHPMailer help...again

    I typed the correct mail server, username and password.

  5. #5
    ellescuba27 is online now x10 Sophmore ellescuba27 is an unknown quantity at this point
    Join Date
    Sep 2011
    Posts
    150

    Re: PHPMailer help...again

    Please help!
    Ok, so here's what happened now. Decided to use DNS with dot.tk, so I changed my address to a .tk address. I decided to use the far safer SSL email login. But it still gives me an error, different this time. Now it gives me error 535. What's going on with email? Same code, different server, different port, SSL enabled.

+ Reply to Thread

Similar Threads

  1. PHPMailer error 220
    By tomsm in forum Free Hosting
    Replies: 2
    Last Post: 10-31-2009, 05:43 PM
  2. PHPMAILER Problem
    By jsm2765 in forum Free Hosting
    Replies: 1
    Last Post: 06-14-2009, 03:43 PM
  3. best PHPmailer available?
    By magsrose in forum Programming Help
    Replies: 1
    Last Post: 07-19-2008, 11:41 PM
  4. phpmailer?
    By salukigirl in forum Programming Help
    Replies: 3
    Last Post: 04-01-2008, 07:39 AM
  5. help on phpmailer
    By lohmeyer in forum Programming Help
    Replies: 5
    Last Post: 01-15-2008, 08:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers