Notification demo
Tags: #naas #notification #snippet
Author: Jeremy Ravenel
Read the doc: https://docs.naas.ai/features/scheduler Note: use ''' around your content for HTML

Input

Import library

1
import naas
Copied!

Model

Notification informations

1
email_to = "[email protected]"
2
subject = "🛎️ Naas Notification Test 🚨"
3
content ='''<p>If i can see an image below this text...&nbsp;</p>
4
<p><img src="https://specials-images.forbesimg.com/imageserve/5f1f37a40a5db2c8275972c0/960x0.jpg?fit=scale" alt="" width="959" height="663" /></p><br>
5
...it means everything goes well.'''
Copied!

Output

Send the notification

1
naas.notification.send(email_to, subject, content)
Copied!
Copy link
Edit on GitHub