Mail::send()

Synopsis

Description

Sends a mail. The send() method is
provided by the object returned from
factory()

Parameter

mixed $recipients - an array or a
string with comma separated recipients.

array $headers -
an associative array of headers. The header name is used as
key and the header value as value. If you want to override
the envelope sender of the email, set the Return-Path header
and that value will be used instead of the value of the From:
header.

The from entry in the $headers array
contains one ore more characters which could be non-RFC compliant.

Check the given from address for characters like: spaces or
; or & or
` (backtick).

sendmail

NULL

"sendmail [path to sendmail]
not executable"

The path to sendmail program is not correct. No sendmail
executable found there.

Check the $param['sendmail_path'] entry
in your Mail::factory() call. If you use
another mailer then sendmail, ie. qmail,
check installation of the mailer. Normally it should includes
a sendmail wrapper.

Warning... Depending (I'm guessing) on your SMTP MTA some emails can be sent without dates and some with, unless you specify a date in the header. For example, my _locally_ delivered mail was ending up at the bottom of people's inboxes because it had a date of 1970. External mail was fine (header added by MTA?).

In order to send e-mail to cc or bcc with smtp you have to list the cc e-mail address both as a recipient (which decides where the e-mail is sent) and in the cc header, which tells the mail client how to display it.