Repository for sending emails from the NBS user account. This repository can be included as a submodule into other repositories.
git submodule add [email protected]:NasjonaltBakkeSegment/send_email.git
The send_email.py
function can then be imported into the parent repository and run.
from send_email import send_email
recipients = [
{'name': 'John Doe', 'email': '[email protected]'},
{'name': 'Jane Smith', 'email': '[email protected]'}
]
subject = 'Test Email'
message = 'This is a test message.'
send_email(recipients, subject, message)