apicrud.messaging.send¶
send.py
Send a message
created 18-apr-2019 by richb@instantlinux.net
Functions
|
|
Exceptions
-
exception
apicrud.messaging.send.
SendException
¶
-
apicrud.messaging.send.
to_contact
(db_session, i18n, frm=None, to=None, template=None, account_id=None, **kwargs)¶ - Parameters
db_session (obj) – open session to database
i18n (obj) – text strings
frm (uid) – person
to (Contact) – recipient
template (str) – template name, jinja2 from i18n_texstrings
account_id (str) – ID of logged-in account
kwargs – kv pairs
- Raises