It is recommended that you subclass Jifty::Notification and override body,
html_body,
subject,
recipients,
and from for each message.
(You may want a base class to provide from,
preface and footer for example.) This lets you keep all of your notifications in the same place.

However,
if you really want to make a notification type in code without subclassing,
you can create a Jifty::Notification and call the set_body,
set_subject,
and so on methods on it.

Delivers the notification,
using the Email::Send mailer defined in the Mailer and MailerArgs configuration arguments.
Returns true if mail was actually sent.
Note errors are not the only cause of mail not being sent -- for example,
the recipients list could be empty.

If you wish to send HTML mail,
set html_body.
If this is not set (for backwards compatibility) a plain-text email is sent.
If html_body and body are both set,
a multipart mail is sent.
See Email::MIME::CreateHTML for how this is done.

Be aware that if you haven't set recipients,
this will fail silently and return without doing anything useful.

Takes a Email::MIME object MESSAGE,
and modifies it as necessary before sending it out.
As the method name implies,
this is usually used to add or modify headers.
By default,
does nothing; this method is meant to be overridden.

Returns the email address from the given object.
This defaults to calling an 'email' method on the object.
This method will be called by "send" to get email addresses (for "to") out of the list of "recipients".

Gets or sets the list of objects that the message will be sent to.
Each one is sent a separate copy of the email.
If passed no parameters,
returns the objects that have been set.
This also suppresses duplicates.

Of the list of users that to provided,
returns the one which mail is currently being sent to.
This is set by the "send" method,
such that it is available to all of the methods that Jifty::Notification's send method calls.