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