Body of message not being sent anymore.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • techjohnny@gmail.com

    #1

    Body of message not being sent anymore.

    Here is the code I'm using:


    <?php
    include('Mail.p hp');

    $recipients = array('To' ='sanfranc415@y ahoo.com',
    );

    $headers['From'] = 'techjohnny@gma il.com';
    $headers['To'] = 'sanfranc415@ya hoo.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($recipien ts, $headers, $body);
    ?>

    Now the message is sent with the subject, but the body is not being
    sent, why?

    Thanks,

    --TJ
  • techjohnny@gmail.com

    #2
    Re: Body of message not being sent anymore.

    On Mar 4, 4:14 pm, "techjoh...@gma il.com" <techjoh...@gma il.com>
    wrote:
    Here is the code I'm using:
    >
    <?php
    include('Mail.p hp');
    >
    $recipients = array('To' ='sanfranc...@y ahoo.com',
    );
    >
    $headers['From'] = 'techjoh...@gma il.com';
    $headers['To'] = 'sanfranc...@ya hoo.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($recipien ts, $headers, $body);
    ?>
    >
    Now the message is sent with the subject, but the body is not being
    sent, why?
    >
    Thanks,
    >
    --TJ
    Just realized I needed to include the complete directory that PEAR
    includes Mail/*

    Thanks,

    --JP

    Comment

    Working...