Alerting & messaging can be used to inform the right person at the right time with the right data. For example you could send out alerts to Slack or MS Teams when stock levels drop below a threshold, or you could send out weekly emails with personalized PDF or Excel reports to each store manager in a large retail company.Related info per connector:Slack - Getting started in PeliqanMicrosoft Teams - Getting started in PeliqanPostmark - Getting started in Peliqan
email = { "from": "no-reply@acme.com", "to": "john@acme.com", "subject": "Here is your weekly report", "text": "We are happy to provide you with this report !", "html": "We are <b>happy</b> to provide you with this report !"}conn = pq.connect('Postmark')result = conn.add('email', email)st.json(result) # for debugging only, see result of sending email to Postmark
import base64text_file_content = "This will be in the attached text file."email = { "from": "no-reply@acme.com", "to": "john@acme.com", "subject": "Test email with attachment", "text": "See Text file attached.", "html": "See Text file attached.", "attachment_name": "my_file.txt", "attachment_content_base64": base64.b64encode(text_file_content.encode("ascii")).decode("ascii"), "attachment_contenttype": "text/plain"}conn = pq.connect('Postmark')result = conn.add('email_with_attachment', email)st.json(result) # for debugging only, see result of sending email to Postmark
See the Reporting section for a detailed example on how to generate a PDF file and send that PDF file as an attachment in an email:Generate and distribute PDF reports
⌘I
Assistant
Responses are generated using AI and may contain mistakes.