[Python-es] Adjuntos correo - Crear MIMEBase ya con un fichero ya en base64

Raimon Esteve raimonesteve en gmail.com
Mie Sep 5 08:51:18 CEST 2012


la respuesta es:

attachment.set_payload(base64.b64encode(data))

gracias raimon ;)

-- 
Si us plau, NO adjunti arxius a les seves respostes. Li preguem que integri
el text al cos del missatge. Pot respondre usant NetEtiquete que li ajudarà
a seguir la conversa. http://es.wikipedia.org/wiki/Netiquette

Por favor, NO adjunte archivos a sus respuestas. Le rogamos que integre el
texto en el cuerpo del mensaje. Puede responder usando NetEtiquete que le
ayudará a seguir la conversación.http://es.wikipedia.org/wiki/Netiquette

Please, DO NOT send attachment files with your answers, just copy and paste
only the text you need to send into the body of your mails. Repply using
NetEtiquete. http://en.wikipedia.org/wiki/Netiquette
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://mail.python.org/pipermail/python-es/attachments/20120905/d52f5bff/attachment.html>


Más información sobre la lista de distribución Python-es