You are here: Re: pear mail error « PHP Programming Language « IT news, forums, messages
Re: pear mail error

Posted by berkshire on 09/20/07 12:51

> You may want to show us the lines 1-17 of your testmail.php.
>
> --
> gosha bine


Here it is (it's the same code as found on the example at
http://pear.php.net/manual/en/package.mail.mail.send.php:

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

$recipients = 'jim@example.com';

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

$body = 'Test message';

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

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

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация