Name
MIMEBase
Synopsis
class MIMEBase(_maintype
,_subtype
,**_params
)
The base class of all MIME classes; directly subclasses
Message
. Instantiating:
m
= MIMEBase(main
,sub
,**parms
)
is equivalent to the longer and less convenient idiom:
m
= Message( )m
.add_header('Content-Type','%s/%s'%(main
,sub
),**parms
)m
.add_header('Mime-Version','1.0')
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.