Mail - getting it to work

From: Date: Wed, 01 Oct 2003 22:03:42 +0000
Subject: Mail - getting it to work
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-8212@lists.php.net to get a copy of this message
Hey all, I am trying to use the PEAR Mail class. Here is my code: <?php require 'Mail.php'; $to = 'ckline@rightcode.net'; $headers['From'] = 'ckline@rightcode.net'; $headers['Subject'] = 'Testing'; $body = 'hey it worked'; $params['host'] = 'smtp.rightcode.net'; $message =& Mail::factory('smtp', $params); $message->send($to, $headers, $body); ?> I don't get any errors etc., but no mail is sent either. Any assistance would be great. Thanks.

« previous php.pear.general (#8212) next »