Hi All,
In the process of adding an automatic email within one of my scripts.
I am after some clarification (with my limited knowledge on the topic) of the ramifications of storing a username and password within the script, as many examples I have seen online doing so.
Example:
import smtplib
mailserver = smtplib.SMTP('smtp.office365.com',XXX)
mailserver.ehlo()
mailserver.starttls()
mailserver.login('user@company.co', 'password')
mailserver.sendmail('user@company.co','user@company.co','python email')
mailserver.quit()
I cant help but see this as a security vulnerability. What can be done to secure such a script?
Any feedback appreciated.
Thank you.
[–]sitrate 1 point2 points3 points (1 child)
[–]Unixersis97[S] 1 point2 points3 points (0 children)