i wanna know if it is possible not to hard code my user name and password in a script that copy a file in the operation system and send it via smtp [gmail]
Thank you!
make the script take the username as command line args.
if you import sys, then sys.argv is the list of all command line args, where the first is the name of the python script itself.
There is a way not to hard code username & pass when sending mail [python]