informatica:programacion:python:mail
Diferencias
Muestra las diferencias entre dos versiones de la página.
| Ambos lados, revisión anteriorRevisión previa | |||
| informatica:programacion:python:mail [2020/11/05 14:44] – [Recibir] tempwin | informatica:programacion:python:mail [2020/11/05 14:49] (actual) – [Recibir] tempwin | ||
|---|---|---|---|
| Línea 40: | Línea 40: | ||
| # Obtenemos el e-mail 1235 | # Obtenemos el e-mail 1235 | ||
| rowMessage = con.fetch([1235], | rowMessage = con.fetch([1235], | ||
| + | |||
| + | # Vamos a usar el módulo ' | ||
| + | import pyzmail | ||
| + | |||
| + | mensaje = pyzmail.PyzMessage.factory(rowMessage[1235][b' | ||
| + | |||
| + | # Obtener el asunto | ||
| + | mensaje.get_subject() | ||
| + | |||
| + | # Obtener el remitente: | ||
| + | mensaje.get_address(" | ||
| + | |||
| + | |||
| </ | </ | ||
informatica/programacion/python/mail.1604583866.txt.gz · Última modificación: por tempwin
