Index

(misc)

o2mail_send

boolean o2mail_send(string $from, string $to, string $cc, string $bcc, string $subject, string $text, boolean $as_html, string $attach)

Sends a mail. Returns TRUE on success.

TO, CC, BCC and Attachments, if multiple, can be provided in two ways:
1. as array of strings in the form:
array(1 => "first_item",
2 => "second_item",
...
n => "nth_item");
keys are ignored
2. as "," or ";" separated string in the form:
"first_item,second_item,...,nth_item"


Parameters:
  1. $from
  2. FROM address
  3. $to
  4. TO address(es)
  5. $cc
  6. Carbon Copy address(es)
  7. $bcc
  8. Blind Carbon Copy address(es)
  9. $subject
  10. Mail subject
  11. $text
  12. Mail text
  13. $as_html
  14. If mail text is HTML formatted
  15. $attach
  16. File(s) to attach to mail