Subversion Repositories SmartDukaan

Rev

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

Rev 16444 Rev 16445
Line 66... Line 66...
66
        return part
66
        return part
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 not mail.emailFrom and mail.emailFrom.strip() != "" :
70
        if mail.emailFrom is not None and not mail.emailFrom and mail.emailFrom.strip() != "" :
-
 
71
            if 'profitmandi.com' in mail.emailFrom:
-
 
72
                msg['From'] = "ProfitMandi <help@profitmandi.com>"
-
 
73
            else:
71
            msg['From'] = mail.emailFrom
74
                msg['From'] = mail.emailFrom
72
        else:
75
        else:
73
            msg['From'] = "Saholic <help@saholic.com>"
76
            msg['From'] = "Saholic <help@saholic.com>"
74
        msg['To'] = ', '.join(mail.emailTo)
77
        msg['To'] = ', '.join(mail.emailTo)
75
        msg['Cc'] = ', '.join(mail.cc)
78
        msg['Cc'] = ', '.join(mail.cc)
76
        #msg['Bcc'] = ', '.join(mail.bcc)
79
        #msg['Bcc'] = ', '.join(mail.bcc)