Free Hosting SMTP still not working

Status
Not open for further replies.

udfdat42

New Member
Messages
10
Reaction score
0
Points
0
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:

udfdat42

New Member
Messages
10
Reaction score
0
Points
0
Works great for me.

Which mail function or library are you using?

My PHP mail function using PHPmailer library :-
PHP:
<?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("------@gmail.com");
	$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:
smtpmailer("------@yahoo.com","------@gmail.com","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:

erepauct

New Member
Messages
7
Reaction score
0
Points
0
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?
 

GtoXic

x10 Support
Messages
636
Reaction score
17
Points
0
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.
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
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:

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
I've looked through the logs and fixed any issues that I've found, can you try again?
 
Status
Not open for further replies.
Top