By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,883 Members | 2,037 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,883 IT Pros & Developers. It's quick & easy.

Pear mail on IIS6 server

P: n/a
I am just setting up a win 2003 server running IIS6 , php, with pear
packages installed.

I am trying to get the Pear Mail package working but cannot get it to send a
message and it returns no error showing why.

here is the code I am using.

<?php

require_once("Mail.php");
$body = "Hello -Just testing. \n\n";

$to = 'm*@myaddress.com';
$headers['subject'] = "Mail Test";
$headers['From'] = 'm*@myaddress.com';
$params['host']="smtpout.secureserver.net";
$params['auth']='LOGIN';
$params['username']='m*@myaddress.com';
$params['password']="mypass";
$params['port']=25;
print "Subject = ".$headers['subject']."<br>";
print "To = ".$to."<br>";
print "Body = ".$body."<br>";
$message = &Mail::factory('smtp',$params);
if (PEAR::isError($message)) { die($message->getMessage()); }
$message->send($to, $headers, $body);
if (PEAR::isError($message)) { die($message->getMessage()); }
?>

the page takes a while to load (45-60 seconds) and it shows the 3 lines from
print commands. It shows nothing else.

display_errors = on in php.ini and I do get error messages if I have errors
in coding (ie. include a file that does not exist).

This is a real stumper - any insight would be appreciated.

Mike
Jun 14 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.