Subversion Repositories SmartDukaan

Rev

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

Rev 14927 Rev 15006
Line 64... Line 64...
64
        part.add_header('Content-Disposition', 'attachment; filename=%s' % filename + "-insurance-policy.pdf")
64
        part.add_header('Content-Disposition', 'attachment; filename=%s' % filename + "-insurance-policy.pdf")
65
        return part
65
        return part
66
 
66
 
67
    def sendMail(self, mail):
67
    def sendMail(self, mail):
68
        msg = MIMEMultipart()
68
        msg = MIMEMultipart()
-
 
69
        if not mail.emailFrom or mail.emailFrom is not None:
-
 
70
            msg['From'] = mail.emailFrom
69
    
71
        else:
70
        msg['From'] = mail.emailFrom
72
            msg['From'] = "Saholic <help@saholic.com>"
71
        msg['To'] = ', '.join(mail.emailTo)
73
        msg['To'] = ', '.join(mail.emailTo)
72
        msg['Cc'] = ', '.join(mail.cc)
74
        msg['Cc'] = ', '.join(mail.cc)
73
        #msg['Bcc'] = ', '.join(mail.bcc)
75
        #msg['Bcc'] = ', '.join(mail.bcc)
74
        msg['Subject'] = mail.subject
76
        msg['Subject'] = mail.subject
75
        
77