Bug #3489 [Opn->Fbk]: Call to undefined function: send()

From: Date: Thu, 24 Feb 2005 16:27:37 +0000
Subject: Bug #3489 [Opn->Fbk]: Call to undefined function: send()
References: 1  Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-5562@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=3489&edit=1 ID: 3489 Updated by: mj@php.net Reported By: webmaster at ukrainebride dot net -Status: Open +Status: Feedback Type: Bug Package: Documentation Operating System: FreeBSD PHP Version: 4.3.4 New Comment: The example worked fine for me the other day. Can you please add a "var_dump($mail);" before the last line and see what the output is? Previous Comments: ------------------------------------------------------------------------ [2005-02-16 04:20:26] webmaster at ukrainebride dot net full list of my code: <?php include('Mail.php'); include('Mail/mime.php'); $text = 'Text version of email'; $html = '<html><body>HTML version of email</body></html>'; $file = '/keys.txt'; $crlf = "\n"; $hdrs = array( 'From' => 'info@ukrainebride.net', 'Subject' => 'Test mime message' ); $mime = new Mail_mime($crlf); $mime->setTXTBody($text); $mime->setHTMLBody($html); $mime->addAttachment($file, 'text/plain'); $body = $mime->get(); $hdrs = $mime->headers($hdrs); $mail =& Mail::factory('mail'); $mail->send('webmaster@ukrainebride.net', $hdrs, $body); ?> ------------------------------------------------------------------------ [2005-02-16 04:16:06] webmaster at ukrainebride dot net Description: ------------ When starting this example I have received the PHP error on the last row ( $mail->send(... ): Fatal error: Call to undefined function: send() in... I have used for this example the next packages: Mail-1.1.4 Mail_Mime-1.2.1 PEAR-1.3.4 ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=3489&edit=1

« previous php.pear.doc (#5562) next »