int Mail_Queue::put (
, string $to
, array $hdrs
, array $body
, integer $sec_to_send = 0
, bool $delete_after_send
, integer $id_user = MAILQUEUE_SYSTEM
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 ID of the record where this mail has been put or Mail_Queue_Error on error
throws no exceptions thrown
This function can not be called statically.