Subversion Repositories SmartDukaan

Rev

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

Rev 1137 Rev 1180
Line 34... Line 34...
34
    part.set_payload(open(attach, 'rb').read())
34
    part.set_payload(open(attach, 'rb').read())
35
    Encoders.encode_base64(part)
35
    Encoders.encode_base64(part)
36
    part.add_header('Content-Disposition', 'attachment; filename="%s"' % os.path.basename(attach))
36
    part.add_header('Content-Disposition', 'attachment; filename="%s"' % os.path.basename(attach))
37
    
37
    
38
    mail("cnc.center@shop2020.in",
38
    mail("cnc.center@shop2020.in",
39
         "puttherightpasswdhere"
39
         "puttherightpasswdhere",
40
         "some.person@some.address.com",
40
         "some.person@some.address.com",
41
         "Hello from python!",
41
         "Hello from python!",
42
         "This is a email sent with python",
42
         "This is an email sent with python",
43
         None)
43
         None)