This commit is contained in:
2022-09-18 19:36:44 +01:00
parent 5833556aed
commit 9f6a4d3847

View File

@ -1,11 +1,11 @@
import smtplib
import toml
# import the corresponding modules
from email import encoders
from email.mime.base import MIMEBase
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
def main():
with open('/zTools/zPrivateConfig/secrets/config.toml') as f:
config = toml.load(f)
@ -50,8 +50,3 @@ def main():
sender_email, receiver_email, text
)
print('Sent')
if __name__ == '__main__':
main