SMTP ERROR: Failed to connect to server: Connection refused (111)
up vote
0
down vote
favorite
I'm trying to send emails from an old server. It's ssl cerficate expired in 2015, but sendmail was working until last week.
I unsuccessfullly tried to update it's certified last week using cpanel and it broke my sendmail.
I'm getting this connection refused.
Connection: opening to ssl://vps.ibrvn.com:465, t=10, opt=array ( )
SMTP ERROR: Failed to connect to server: Connection refused (111)
I'm using PHPMailer
Here is some sample code:
$mail->SMTPDebug = 4;
$mail->isSMTP();
$mail->Host = 'vps.ibrvn.com';
$mail->Port = 465;
$mail->SMTPAuth = true;
$mail->Username = 'informativo@ibrvn.com';
$mail->Password = 'mypassword';
$mail->SMTPSecure = 'ssl'; // ssl|tls
$mail->CharSet = 'utf-8';
$mail->From = 'informativo@ibrvn.com';
$mail->FromName = 'Informativo';
$mail->addAddress('filiperoberto.s@gmail.com','Filipe');
$mail->isHTML( true );
$subject = 'teste';
$mail->Subject = $subject;
$mail->Body = 'teste';
$mail->AltBody = '';
I tried to open 465 port, but it seems that the configuration files are ok. I have no idea where to start looking now.
email smtp
add a comment |
up vote
0
down vote
favorite
I'm trying to send emails from an old server. It's ssl cerficate expired in 2015, but sendmail was working until last week.
I unsuccessfullly tried to update it's certified last week using cpanel and it broke my sendmail.
I'm getting this connection refused.
Connection: opening to ssl://vps.ibrvn.com:465, t=10, opt=array ( )
SMTP ERROR: Failed to connect to server: Connection refused (111)
I'm using PHPMailer
Here is some sample code:
$mail->SMTPDebug = 4;
$mail->isSMTP();
$mail->Host = 'vps.ibrvn.com';
$mail->Port = 465;
$mail->SMTPAuth = true;
$mail->Username = 'informativo@ibrvn.com';
$mail->Password = 'mypassword';
$mail->SMTPSecure = 'ssl'; // ssl|tls
$mail->CharSet = 'utf-8';
$mail->From = 'informativo@ibrvn.com';
$mail->FromName = 'Informativo';
$mail->addAddress('filiperoberto.s@gmail.com','Filipe');
$mail->isHTML( true );
$subject = 'teste';
$mail->Subject = $subject;
$mail->Body = 'teste';
$mail->AltBody = '';
I tried to open 465 port, but it seems that the configuration files are ok. I have no idea where to start looking now.
email smtp
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm trying to send emails from an old server. It's ssl cerficate expired in 2015, but sendmail was working until last week.
I unsuccessfullly tried to update it's certified last week using cpanel and it broke my sendmail.
I'm getting this connection refused.
Connection: opening to ssl://vps.ibrvn.com:465, t=10, opt=array ( )
SMTP ERROR: Failed to connect to server: Connection refused (111)
I'm using PHPMailer
Here is some sample code:
$mail->SMTPDebug = 4;
$mail->isSMTP();
$mail->Host = 'vps.ibrvn.com';
$mail->Port = 465;
$mail->SMTPAuth = true;
$mail->Username = 'informativo@ibrvn.com';
$mail->Password = 'mypassword';
$mail->SMTPSecure = 'ssl'; // ssl|tls
$mail->CharSet = 'utf-8';
$mail->From = 'informativo@ibrvn.com';
$mail->FromName = 'Informativo';
$mail->addAddress('filiperoberto.s@gmail.com','Filipe');
$mail->isHTML( true );
$subject = 'teste';
$mail->Subject = $subject;
$mail->Body = 'teste';
$mail->AltBody = '';
I tried to open 465 port, but it seems that the configuration files are ok. I have no idea where to start looking now.
email smtp
I'm trying to send emails from an old server. It's ssl cerficate expired in 2015, but sendmail was working until last week.
I unsuccessfullly tried to update it's certified last week using cpanel and it broke my sendmail.
I'm getting this connection refused.
Connection: opening to ssl://vps.ibrvn.com:465, t=10, opt=array ( )
SMTP ERROR: Failed to connect to server: Connection refused (111)
I'm using PHPMailer
Here is some sample code:
$mail->SMTPDebug = 4;
$mail->isSMTP();
$mail->Host = 'vps.ibrvn.com';
$mail->Port = 465;
$mail->SMTPAuth = true;
$mail->Username = 'informativo@ibrvn.com';
$mail->Password = 'mypassword';
$mail->SMTPSecure = 'ssl'; // ssl|tls
$mail->CharSet = 'utf-8';
$mail->From = 'informativo@ibrvn.com';
$mail->FromName = 'Informativo';
$mail->addAddress('filiperoberto.s@gmail.com','Filipe');
$mail->isHTML( true );
$subject = 'teste';
$mail->Subject = $subject;
$mail->Body = 'teste';
$mail->AltBody = '';
I tried to open 465 port, but it seems that the configuration files are ok. I have no idea where to start looking now.
email smtp
email smtp
asked Nov 22 at 14:59
Filipe Roberto
112
112
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1377598%2fsmtp-error-failed-to-connect-to-server-connection-refused-111%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown