Subversion Repositories SmartDukaan

Rev

Rev 13884 | Rev 13896 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13884 Rev 13893
Line 158... Line 158...
158
        smtpServer.sendmail(sender, recipients, msg.as_string())
158
        smtpServer.sendmail(sender, recipients, msg.as_string())
159
        print "Successfully sent email"
159
        print "Successfully sent email"
160
    except:
160
    except:
161
        print "Error: unable to send email."
161
        print "Error: unable to send email."
162
 
162
 
163
def main():
163
def sendMail():
164
    getProducts()
164
    getProducts()
165
    writeSheet()
165
    writeSheet()
-
 
166
 
-
 
167
def main():
166
    
168
    sendMail()
167
 
169
 
168
if __name__=='__main__':
170
if __name__=='__main__':
169
    main()
171
    main()
170
172