Esempio n. 1
0
    def sendEmailToHC(self):

        objHC = open('D:\Project Amigo\Project\TextFiles\HC.txt', 'r')
        lines = objHC.readlines()
        Hc_Name = lines[0]
        Hc_Email = lines[1]

        msgToHC = "Dear "+Hc_Name+"<br><h5>Your client health was consistently unhappy for last 2 days<br>, I think you need to contact him\her.<h5>"

        objProfile = Profile()
        objProfile.sendEmail('*****@*****.**', Hc_Email, msgToHC)