Construction of smtp client

Registered by Sharoon Thomas http://openlabs.co.in on 2009-07-29

Build a generic smtp client for sending mails attached to the poweremail_coreaccounts.

Blueprint information

Status:
Complete
Approver:
Sharoon Thomas http://openlabs.co.in
Priority:
Undefined
Drafter:
Sharoon Thomas http://openlabs.co.in
Direction:
Needs approval
Assignee:
Sharoon Thomas http://openlabs.co.in
Definition:
Approved
Series goal:
Accepted for trunk
Implementation:
Implemented
Milestone target:
milestone icon 0.3
Started by
Sharoon Thomas http://openlabs.co.in on 2009-07-29
Completed by
Sharoon Thomas http://openlabs.co.in on 2009-08-03

Related branches

Sprints

Whiteboard

    def send_mail(self,cr,uid,ids,to=[],cc=[],bcc=[],subject="",body_text="",body_html="",payload={}):
        #ids:(from) Account from which mail is to be sent
        #to: To ids as list
        #cc: CC ids as list
        #bcc: BCC ids as list
        #subject: Subject as string
        #body_text: body as plain text
        #body_html: body in html
        #payload: attachments as binary dic. Eg:payload={'filename1.pdf':<binary>,'filename2.jpg':<binary>}
To send a mail:

self.pool.get('poweremail.core_accounts').send_mail(cr,uid,acc_id,[to],[cc],[bcc],"Subject",body_text,body_html,{})

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.