A Python module of email sender for IBM Notes 📧
from models.NotesMail import NotesMail
Create NotesMail
object. You need your server name and IBM Notes nsf file path.
MAIL_SERVER_NAME = "DOMINOMSGN1/ABC_COMPANY"
MAIL_DB_NAME = "mail\your_username.nsf"
mail = NotesMail(MAIL_SERVER_NAME, MAIL_DB_NAME)
Use function .send_email
to send the email via IBM Notes.
recivers = ["amy.cheng@xyz.com"]
subject = "Hello!"
body = "This is a test mail."
attachments = ["./test.xlsx"]
mail.send_mail(recivers=recivers, subject=subject,
body=body, attachments=attachments)