Forum Moderators: coopster

Message Too Old, No Replies

PEAR/Info.php

Pear Information

         

anshul

12:49 pm on May 6, 2005 (gmt 0)

10+ Year Member



I tried to use Example 49-1. Using PEAR_Info
This is not showing PEAR installation information on local/remote server.
What I see local, I've no file Info.php in package PEAR in PEAR directory.
I've installed PEAR, why this file is missing?
My Web host say, they've installed PEAR, and I can use PEAR.

anshul

9:57 am on May 7, 2005 (gmt 0)

10+ Year Member



This code worked fine:
<?php
include('Mail.php');

$recipients = 'anshul@example.com';

$headers['From'] = 'richard@example.com';
$headers['To'] = 'anshul@example.com';
$headers['Subject'] = 'Test message';

$body = 'Test message';

$params['sendmail_path'] = '/usr/lib/sendmail';

// Create the mail object using the Mail::factory method
$mail_object =& Mail::factory('sendmail', $params);

$mail_object->send($recipients, $headers, $body);
?>


Please help me further ( examples ), to use MAIL and MAIL_QUEUE packages.

[edited by: coopster at 12:16 pm (utc) on May 7, 2005]
[edit reason] generalized email TOS [webmasterworld.com] [/edit]

anshul

10:41 am on May 7, 2005 (gmt 0)

10+ Year Member



Oh, I did the simplest example4 MAIL package
<?php
include('Mail/mail.php');

$recipients = 'anshul@example.com';

$headers['From'] = 'richard@example.com';
$headers['To'] = 'anshul@example.com';
$headers['Subject'] = 'Test message';

$body = 'Message <!-- just testing -->';

$params['sendmail_path'] = '/usr/lib/sendmail';

// Create the mail object using the Mail::factory method
$mail_object =& Mail_mail::factory('sendmail', $params);

$mail_object->send($recipients, $headers, $body);
?>

So, I'm sure I'll use MAIL_QUEUE in few minutes from now! But how can I knew details of PEAR configuration/installation/modules through a PHP script ( Example 49-1. Using PEAR_Info )?

[edited by: coopster at 12:17 pm (utc) on May 7, 2005]
[edit reason] generalized email TOS [webmasterworld.com] [/edit]