Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Free Hosting SMTP still not working

  1. #1
    udfdat42 is offline x10Hosting Member
    Join Date
    May 2012
    Posts
    10

    Exclamation Free Hosting SMTP still not working

    It is posted on the status page that Free hosting Email has been resolved on 28th June, 2012.

    Yet I am getting the same error :-

    SMTP Error: Could not connect to SMTP host.

    Kindly update me with what is happening with SMTP and when could we find it working...

    I am using PHPmailer with GMail SMTP..

    Thankyou
    Last edited by udfdat42; 06-29-2012 at 04:51 AM.

  2. #2
    erepauct is offline x10Hosting Member
    Join Date
    Jun 2012
    Posts
    7

    Re: Free Hosting SMTP still not working

    Works great for me.

  3. #3
    udfdat42 is offline x10Hosting Member
    Join Date
    May 2012
    Posts
    10

    Unhappy Re: Free Hosting SMTP still not working

    Quote Originally Posted by erepauct View Post
    Works great for me.
    Which mail function or library are you using?

    My PHP mail function using PHPmailer library :-
    PHP Code:
    <?php

    include("phpmailer/class.phpmailer.php");

    function 
    filterEmail($email$chars ''){
        
    $email trim(str_replace( array("\r","\n"), ''$email ));
        if( 
    is_array($chars) ) $email str_replace$chars''$email );
        
    $email preg_replace'/(cc\s*\:|bcc\s*\:)/i'''$email );
        return 
    $email;
    }

    function 
    smtpmailer($to$from$from_name$subject$body) {
            
    $to filterEmail($to); 
            
    $from filterEmail($from);
        global 
    $error;
        
    $mail = new PHPMailer();  // create a new object
        
    $mail->IsSMTP(); // enable SMTP
        
    $mail->isHTML();
        
    $mail->SMTPDebug 0;  // debugging: 1 = errors and messages, 2 = messages only
        
    $mail->SMTPAuth true;  // authentication enabled
        
    $mail->SMTPSecure 'ssl'// secure transfer enabled REQUIRED for GMail
        
    $mail->Host 'smtp.gmail.com';
        
    $mail->Port 465
        
    $mail->Username filterEmail("[email protected]");
        
    $mail->Password "------";           
        
    $mail->SetFrom($from$from_name);
        
    $mail->Subject $subject;
        
    $mail->Body $body;
        
    $mail->AddAddress($to);
        if(!
    $mail->Send()) {
            
    $error 'Mail error: '.$mail->ErrorInfo
            return 
    false;
        } else {
            
    $error 'Message sent!';
            return 
    true;
        }
    }

    ?>
    I called this function as below :-
    PHP Code:
    smtpmailer("[email protected]","[email protected]","From Name","Welcome","Test"); 
    And when I execute this PHP, I get the following error :-
    SMTP Error: Could not connect to SMTP host.
    You can check yourself at - http://ingame.x10.mx/social/test.php

    My Free hosting account is on Starka Server.

    I am sure that my code is correct as it has worked earlier and also it works on my local server. I haven't made any changes to this code since the SMTP Server was down.
    Last edited by udfdat42; 06-29-2012 at 11:24 AM.

  4. #4
    erepauct is offline x10Hosting Member
    Join Date
    Jun 2012
    Posts
    7

    Re: Free Hosting SMTP still not working

    I'm using whatever comes built into WeBid. It's sending emails perfectly through boru.x10hosting.com outgoing mail server.

    Sorry, I'm not that experienced with the code side of it.

    Maybe it's a problem with starka server?

  5. #5
    GtoXic is offline x10 Support
    Join Date
    Apr 2010
    Posts
    637

    Re: Free Hosting SMTP still not working

    Hi, the issue with GMail that you're facing is the server not allowing outgoing on port 25. I've alerted the admins about it.
    GtoXic | x10Hosting Technical Support
    █ john.h[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004
    Premium Hosting | VPS Services

  6. #6
    GtoXic is offline x10 Support
    Join Date
    Apr 2010
    Posts
    637

    Re: Free Hosting SMTP still not working

    Our admin recommends trying again.
    GtoXic | x10Hosting Technical Support
    █ john.h[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004
    Premium Hosting | VPS Services

  7. #7
    udfdat42 is offline x10Hosting Member
    Join Date
    May 2012
    Posts
    10

    Re: Free Hosting SMTP still not working

    Quote Originally Posted by GtoXic View Post
    Our admin recommends trying again.
    Sorry for late reply..

    I tried again and it works now..

    Thanks a ton GToXic and Admins :D

  8. #8
    descalzo's Avatar
    descalzo is offline Grim Squeaker
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    8,279

    Re: Free Hosting SMTP still not working

    Quote Originally Posted by GtoXic View Post
    Hi, the issue with GMail that you're facing is the server not allowing outgoing on port 25. I've alerted the admins about it.
    They check all the servers (ie Chopin)?
    Last edited by descalzo; 06-29-2012 at 09:16 PM.
    Nothing is always absolutely so.

  9. #9
    GtoXic is offline x10 Support
    Join Date
    Apr 2010
    Posts
    637

    Re: Free Hosting SMTP still not working

    Quote Originally Posted by descalzo View Post
    They check all the servers (ie Chopin)?
    I believe it may have been an issue that was fixed already judging on the reply from Corey.
    GtoXic | x10Hosting Technical Support
    █ john.h[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004
    Premium Hosting | VPS Services

  10. #10
    descalzo's Avatar
    descalzo is offline Grim Squeaker
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    8,279

    Re: Free Hosting SMTP still not working

    Quote Originally Posted by GtoXic View Post
    I believe it may have been an issue that was fixed already judging on the reply from Corey.
    Email not working again

    and my test script on Chopin say differently
    Nothing is always absolutely so.

Page 1 of 2 12 LastLast

Similar Threads

  1. SMTP server on free hosting
    By brettwhite in forum Free Hosting
    Replies: 1
    Last Post: 06-24-2011, 05:53 AM
  2. smtp not working
    By mkstalal in forum Free Hosting
    Replies: 4
    Last Post: 08-16-2008, 04:32 AM
  3. SMTP not working
    By mkstalal in forum Free Hosting
    Replies: 0
    Last Post: 08-11-2008, 07:20 AM
  4. SMTP not working for me.
    By Ragsy1 in forum Free Hosting
    Replies: 3
    Last Post: 11-20-2007, 10:19 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
dedicated servers