I'm looking to have an email sent out each time my hosted feature service (on AGOL) has my status field altered. This status field is set to "not complete" by default, and as its completed it changes to "complete". When this happens I want an email sent out.
I've been playing around with webhooks and services likes Microsoft Flow and Integromat but not having too much success.
Any ideas?
Solved! Go to Solution.
Ok I got it after some searching. GMAIL is much different.
Do this
change this line #server = smtplib.SMTP(emailSMTP)
to server = smtplib.SMTP_SSL(emailSMTP,465)
Remove the port number from the top so change emailSMTP = "smtp.gmail.com:587"
to just emailSMTP = "smtp.gmail.com"
Change this line #server.starttls()
to server.ehlo()
Add your username and pass to the lines
smtpusername = "you@gmail.com"
smtppassword = "pass"
Oh and the big one is go to https://myaccount.google.com/lesssecureapps?pli=1 then enable access!!
It now works.
It worked!
Thanks
You can also add your support and use case to this idea:
I assume that in the future "Webhooks" will be the way to do this, in a similar way as recently implemented with surveys in Survey123: Webhooks—Survey123 for ArcGIS | ArcGIS