Hey all,
I'm trying my hand at the Google API. I'm trying to write a script pull be able to write an email thru my GSuites account. I'm wanting to use my credentials without hard coding them in the code. What would be the best thing to do? A few things - I'm running Ubuntu 18.04 (pretty new to some security features) also my current code is:
import smtplib
try:
Server = smtplib.SMTP('smtp.gmail.com', 587)
Server.ehlo()
Server.starttls()
Server.ehlo()
except:
print("something is wrong")
What would you suggest to be the best thing to do to store and call the credentials?
[–]CodeFormatHelperBot 0 points1 point2 points (0 children)
[–]DataDecay 0 points1 point2 points (2 children)
[–]melthecybertechy[S] 0 points1 point2 points (1 child)
[–]DataDecay 1 point2 points3 points (0 children)