RE: [Newbie] Mail

From: Date: Tue, 22 Jun 2004 14:33:35 +0000
Subject: RE: [Newbie] Mail
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13243@lists.php.net to get a copy of this message
After running the code below, I do not receive any parse errors but I also never receive the mail that should be sent out. Any ideas as to what I am missing? <?php include('Mail.php'); include('Mail/mime.php'); $toDepartment = $_POST['toDepartment']; $text = 'Text version of email'; $html = '<html><body>HTML version of email</body></html>'; $hdrs = array( 'From' => 'info@fashionoutsourcing.com', 'Subject' => 'Test mime message' ); $mime = new Mail_mime(); $mime->setTXTBody($text); $mime->setHTMLBody($html); $body = $mime->get(); $hdrs = $mime->headers($hdrs); $param["host"] = "my.smtp.server"; $param["auth"] = TRUE; $param["username"] = 'myemail@domain.com'; $param["password"] = 'password'; $mail =& Mail::factory('smtp', $param); $mail->send($toDepartment, $hdrs, $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 (#13243) next »