I have a script which will log into a STMP server (GMail's) to send an email notification. How can I do this without distributing the password in plain text?
Have the script request the password when running.
Note, I wouldn't advise that it accept the password as a command line argument as this isn't very secure because it will be logged in the command history etc.
Distribute a script, but protect the password