Re: PEAR send mail problem
| From: | Curt Zirzow | Date: | Tue, 29 Jul 2003 19:08:13 +0000 |
| Subject: | Re: PEAR send mail problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-157399@lists.php.net to get a copy of this message | ||
* Thus wrote Andrew D. Luebke (andrew@copeandmcphetres.com):
> Hello,
> I'm writing a program to send mail via the PEAR Mail module. Here is
> some code fragments:
>
> require_once "Mail/Mail.php";
> require_once "Mail/Mime.php";
> .
> .
> $body = $mime->get();
> $headers = $mime->headers($headers);
> $mail =& Mail::factory('smtp');
> .
> .
> $mail->send($email, $headers, $body);
>
> I get an error "Call to undefined function: send()" I have the function in
> the mail.php include don't I? Thanks.
Pear actually have their own dedicated mailing list, you might get
a more thorough explanation on this over there..
http://php.net/mailing-lists.php
Curt
--
"I used to think I was indecisive, but now I'm not so sure."