PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Big issue with PEAR::Mail (Live down ?)

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Mail
View previous topic :: View next topic  
Author Message
MrWho



Joined: 15 Mar 2010
Posts: 1

PostPosted: Mon Mar 15, 2010 4:48 pm    Post subject: Big issue with PEAR::Mail (Live down ?) Reply with quote

Hello

I use following source code :
Code:
<?php
require_once "Mail.php";

$from = "Sandra Sender <sender_AT_example.com>";
$to = "Ramona Recipient <recipient_AT_example.com>";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";

$host = "smtp.live.com";
$username = "smtp_username"; // changed in my script of course
$password = "smtp_password"; // changed in my script of course

$headers = array ('From' => $from,
  'To' => $to,
  'Subject' => $subject);
$smtp = Mail::factory('smtp',
  array ('host' => $host,
    'auth' => true,
    'username' => $username,
    'password' => $password));

$mail = $smtp->send($to, $headers, $body);

if (PEAR::isError($mail)) {
  echo("<p>" . $mail->getMessage() . "</p>");
} else {
  echo("<p>Message successfully sent!</p>");
}
?>


I worked during many months... but today, i receive this error :
Code:
Failed to connect to smtp.live.com:25 [SMTP: Failed to connect socket: Connection refused (code: -1, response: )]


I tested with my hoster private smtp server ( Infomaniak ), and it works.

But it's strange it doesn't work with Live... and i need to.

Have you the same error ? Have you already see it with Hotmail ? Can it work with other external email system ( Outlook, Thunderbird), is it just PEAR ? How many time it can continue to fail ?

Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Mail All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement