BasePy = scan('sendmail_base.py', what='character', sep='\n')
OutPy = gsub('your_email@gmail.com', 'yourRealEmailAddress', InFile)
OutPy = gsub('your_password', 'yourRealPassword', OutFile)
Email an attachment in R with gmail