473,396 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Pear mail on IIS6 server

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
0 1379

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Xaver Biton | last post by:
Hi, my internet provvider doesn' have support for pear and I tried the manual Installation as in the installation manual but when I call the script <?php ini_set("include_path",...
1
by: Louis Aslett | last post by:
Hi, I am extremely stuck trying to port a PHP app from one server to another while making use of the PEAR Mail_mimeDecode package. We have just upgraded from RedHat 7.x to RedHat Enterprise...
0
by: David Wright | last post by:
I am running Red Hat 8.0 and have pear enabled in PHP. I have installed the Socket.php in the PEAR Net/ directory. When I run this test script It displays the "Mail has been sent message" but no...
1
by: L'astemio | last post by:
hi all i must send a mail from a php form. ok. i have pear installed. ok. this is my code: <? include("Mail.php"); $recipients = "info@domain.com"; $headers = "info@domain.com";
0
by: erwinschrijver | last post by:
On a previous installed server my site which uses several PEAR-packages worked fine. Now it's transfered to a new server. (Both servers installed with Windows 2003 / IIS 6, on the previous server...
0
snowdonkey
by: snowdonkey | last post by:
I'm trying to use the Mail package from PEAR in a script that sends an e-mail over SMTP. The problem is that the Mail class in Mail.php provided by the package isn't found by the script. I'm using:...
2
by: MJ | last post by:
I use the following code to send mails using php usinf PEAR package. When I run this code from command line using the command "php automaticMail.php" the code works fine. But when i run this...
2
by: Paul | last post by:
I am moving an existing app written years ago to a new server. It uses Sigma Template 1.3 and Quickform 1.1.1 and PEAR.php,v 1.1.1.1 2004/02/16 The directory structure is like this: /site...
5
by: jeddiki | last post by:
I am building my subscriber list which is held in the mySQL database "client" table and I want to start sending them a newsletter. My list will probably get up to around 20,000 I would like...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.