Works great for me.
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.
Works great for me.
Which mail function or library are you using?
My PHP mail function using PHPmailer library :-
I called this function as below :-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;
}
}
?>
And when I execute this PHP, I get the following error :-PHP Code:smtpmailer("[email protected]","[email protected]","From Name","Welcome","Test");
You can check yourself at - http://ingame.x10.mx/social/test.phpSMTP Error: Could not connect to SMTP host.
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.
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?
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
Our admin recommends trying again.
█ GtoXic | x10Hosting Technical Support
█ john.h[@]x10hosting.com
█ x10Hosting - Giving Away Hosting Since 2004
█ Premium Hosting | VPS Services
█ GtoXic | x10Hosting Technical Support
█ john.h[@]x10hosting.com
█ x10Hosting - Giving Away Hosting Since 2004
█ Premium Hosting | VPS Services
Email not working again
and my test script on Chopin say differently
Nothing is always absolutely so.