send messages in github code example
Example 1: slack send message python
import os
import slack
slack_token = os.environ["SLACK_API_TOKEN"]
client = slack.WebClient(token=slack_token)
client.chat_postMessage(
channel="C0XXXXXX",
text="Hello from your app! :tada:"
)
Example 2: system.net.mail send html message
msg = new MailMessage("[email protected]",
"[email protected]", "Message from PSSP System",
"This email sent by the PSSP system<br />" +
"<b>this is bold text!</b>");
msg.IsBodyHtml = true;