require_once 'Mail/Queue.php';
bool Mail_Queue::put (string $from, string $to, array $hdrs, array $body [, integer $sec_to_send = 0 [, bool $delete_after_send = TRUE [, integer $id_user = MAILQUEUE_SYSTEM]]])
bool Mail_Queue::put
Injects a new mail into the mail queue.
Sender e-mail address.
Recipient e-mail address.
Array of mail headers as returned by Mail_Mime::headers().
Mail body array as returned by Mail_Mime::get().
Optional - Seconds to pass before delivery is attempted.
Optional - Whether or not to delete the mail after delivery.
Optional - user ID. Stored in queue and readable from mail body object with getIdUser() at a later point.
returns True on success
throws no exceptions thrown
This function can not be called statically.