
email.pl -- Email plugin for SWISHThis module deals with sending email from SWISH. Email is sent for confirmation (of the email address) as well as for notifications.
email_cleanup_db
smtp_send_html(+To, :Content, +Options)text/html.
dear(+Profile)//
signature//
profile_name(+Profile)//
email_action_link(:Label, :Reply, :Action, +Options)//
public_url(+To, +Query, -URL, +Options) is detThe following predicates are exported from this file while their implementation is defined in imported modules or non-module files loaded by this module.
smtp_send_mail(+To, :Goal, +Options)smtp(+Host)
the name or ip address for smtp host, eg. swi-prolog.orgfrom(+FromAddress)
atomic identifies sender address. Provides the default
for header(from(From)).date(+Date)
Set the date header. Default is to use the current time.subject(+Subject)
atomic: text for 'Subject:' email headerauth(User-Password)
authentication credentials, as atoms or strings.auth_method(+PlainOrLoginOrNone)
type of authentication. Default is default, alternatives
are plain and loginsecurity(Security)
one of: none, ssl, tls, starttlscontent_type(+ContentType)
sets Content-Type headermailed_by(By)
add X-Mailer: SWI-Prolog <version>, pack(smtp) to header
iff By == trueheader(from('My name,
me@server.org')) adds header "From: My name, my@server.org"
and header('FOO'(bar)) adds "FOO: bar"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).
The following predicates are exported, but not or incorrectly documented.
email_style(Arg1, Arg2)