Links

Notification demo

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

Input

Import library

import naas

Model

Notification informations

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

Output

Send the notification

naas.notification.send(email_to, subject, content)