PublicShow sourceemail.pl -- Email plugin for SWISH

This module deals with sending email from SWISH. Email is sent for confirmation (of the email address) as well as for notifications.

Source email_cleanup_db
Strip the email confirmation queue from outdated messages.
Source smtp_send_html(+To, :Content, +Options)
Send an HTML mail to To using HTML content Content. Options are passed to smtp_send_mail/3, passing as default content-type text/html.
Source dear(+Profile)//
Address user with the given ProfileID.
Source signature//
Emit footer
Source profile_name(+Profile)//
Emit the name associated with Profile as unstyled HTML.
Source email_action_link(:Label, :Reply, :Action, +Options)//
Generate a link in an HTML mail page that, when clicked, executes Action and if successful replies to the request using Reply.
Source public_url(+To, +Query, -URL, +Options) is det
True when URL is a link to handler To with Query

Re-exported predicates

The following predicates are exported from this file while their implementation is defined in imported modules or non-module files loaded by this module.

Source smtp_send_mail(+To, :Goal, +Options)
Send mail using SMTP. To is the e-mail address of the receiver. Options:

Defaults are provided by settings associated to this module.

Listens to debug(smtp) which for instance reports failure to connect, (computation fails as per non-debug execution).

Arguments:
To- is an atom holding the target address
Goal- is called as call(Goal, Stream) and must provide the body of the message.

Undocumented predicates

The following predicates are exported, but not or incorrectly documented.

Source email_style(Arg1, Arg2)