
INSTALLATION
	1. Place the entire pear_mail directory into your mimemail/modules directory.
	2. Activate PEAR:MAIL according to http://nirlevy.blogspot.com/2008/03/drupal-smtp-authentication.html
	(see below)
	3. Enable the pear_mail module by navigating to:
     administer > modules

http://nirlevy.blogspot.com/2008/03/drupal-smtp-authentication.html contains the following suggestions to start using PEAR:MAIL for ordinary mail
1. Install PEAR::Mail. On linux you can just run the following command as root:

 pear install --alldeps Mail

2. #  Create a new file, say includes/smtpmail/smtpmail.inc and paste the following code into it:

<?php
require_once 'Mail.php';
require_once 'PEAR.php';

function drupal_mail_wrapper($mailkey, $to, $subject, $body, $from, $headers) {
  global $smtpmail;

  $headers['From']    = $from;
  if ( empty($headers['To'])) {
    $headers['To'] = $to;
  }
  $headers['Subject'] = $subject;

  $recipients = $to;
  $mail_object =&Mail::factory('smtp', $smtpmail);
  $output = $mail_object->send($recipients, $headers, $body);
  return $output;
}

# Edit your settings.php and add the following at the end:

$conf = array(
  'smtp_library' => 'includes/smtpmail/smtpmail.inc'
);
global $smtpmail;
$smtpmail= array();
$smtpmail["host"]  = 'your.mail.host';
$smtpmail["auth"] = TRUE;
$smtpmail["username"] = 'your_user_name';
$smtpmail["password"] = 'your_password';


	
	


