<DIV>hi,</DIV>
<DIV>&nbsp;</DIV>
<DIV>i am having problems importing encode_base64</DIV>
<DIV>&nbsp;</DIV>
<DIV>i have created a product in which i have specified:</DIV>
<DIV>'''</DIV>
<DIV><FONT face=courier>from AccessControl import allow_module, allow_class, allow_type<BR>from AccessControl import ModuleSecurityInfo, ClassSecurityInfo</FONT></DIV>
<DIV><FONT face=courier>from email.Encoders import encode_base64</FONT></DIV>
<DIV><BR><FONT face=courier>allow_class(encode_base64)</FONT></DIV>
<DIV><FONT face=Courier></FONT>&nbsp;</DIV>
<DIV><FONT face=Courier>''</FONT></DIV>
<DIV><FONT face=Courier></FONT>&nbsp;</DIV>
<DIV><FONT face=arial>however when i try using it:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=courier>from Products.EmailTools import MIMEText,MIMEBase,MIMEMultipart,Header,encode_base64</FONT></DIV>
<P><FONT face=courier><FONT face=arial>i get an error saying</FONT>:</FONT></P><FONT face=courier>
<P><FONT face=arial><STRONG>Error Type: ImportError</STRONG><BR><STRONG>Error Value: cannot import name encode_base64</STRONG></FONT></P>
<P><FONT face=arial>All other modules are imported except this one...</FONT></P>
<P><FONT face=arial>how do i import it?</FONT></P>
<P><FONT face=arial></FONT>&nbsp;</P>
<P><FONT face=arial>regards,</FONT></P>
<P><FONT face=arial>varun</P>
<P><BR></P></FONT>
<DIV><BR></DIV></FONT><p>
                <hr size=1>Discover Yahoo!<br> 
Have fun online with music videos, cool games, IM & more. <a href="http://us.rd.yahoo.com/evt=32660/*http://discover.yahoo.com/online.html">Check it out!</a>