RE: Mail

From: Date: Sun, 13 Jun 2004 16:38:12 +0000
Subject: RE: Mail
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13121@lists.php.net to get a copy of this message
I am a new user of Pear packages and need some assistance. I am using the code below to send a mail message. After submitting the form I get no parsing errors but, the email never arrives. Can anyone see if I am missing something in the code? Thanks! <?php include('Mail.php'); $recipients = 'schalk@volume4.co.za'; $name = $_POST['name']; $headers['From'] = $_POST['email']; $headers['To'] = $_POST['toDepartment']; $headers['Subject'] = 'Website request from: $name'; $body = 'Test message'; // Create the mail object using the Mail::factory method $mail_object =& Mail::factory('smtp'); $mail_object->send($recipients, $headers, $body); ?> Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:schalk@volume4.co.za web: www.volume4.co.za This message contains information that is considered to be sensitive or confidential and may not be forwarded or disclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you.

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