Skip to content

email with sceewlog #56

Closed Answered by FMassin
dufangqing asked this question in Q&A
Mar 20, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hello

Here's my usual config style with gmail:

email.activate = true
email.magThresh  =  0.0
email.usetls =  true
email.usessl = false
email.port  =  587
email.authenticate  =  true
email.smtpserver  =  smtp.gmail.com
email.credentials  =  /home/sysop/.seiscomp/.useremail
email.senderaddress  =  ****@gmail.com
email.subject  =  "EEW /"
email.host  =  ***.***.ethz.ch
email.recipients  =  fmassin@...

And my /home/sysop/.seiscomp/.useremail:

username=*****@gmail.com
password=*****

Check your gmail account config to make sure it allows using email.mime.text.MIMEText() : https://pythonaddict.com/how-to-generate-google-application-password/

Let me know if that helps!

Cheers

Fred

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dufangqing
Comment options

Answer selected by dufangqing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants