Subversion Repositories SmartDukaan

Rev

Rev 22469 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 22469 Rev 23839
Line 67... Line 67...
67
 
67
 
68
    def sendMail(self, mail):
68
    def sendMail(self, mail):
69
        msg = MIMEMultipart()
69
        msg = MIMEMultipart()
70
        if mail.emailFrom is not None and mail.emailFrom.strip() != "" :
70
        if mail.emailFrom is not None and mail.emailFrom.strip() != "" :
71
            if 'profitmandi.com' in mail.emailFrom:
71
            if 'profitmandi.com' in mail.emailFrom:
72
                msg['From'] = "ProfitMandi <help@profitmandi.com>"
72
                msg['From'] = "ProfitMandi <help@smartdukaan.com>"
73
            else:
73
            else:
74
                msg['From'] = mail.emailFrom
74
                msg['From'] = mail.emailFrom
75
        else:
75
        else:
76
            msg['From'] = "Saholic <help@saholic.com>"
76
            msg['From'] = "Saholic <help@saholic.com>"
77
        msg['To'] = ', '.join(mail.emailTo)
77
        msg['To'] = ', '.join(mail.emailTo)