Scusate la domanda banale, sono neofita di Python 3.7,
sto provando il codice  della pagina
https://docs.python.org/3/library/email.examples.html?highlight=read%20mail
First, let’s see how to create and send a simple text message (both the
text content and the addresses may contain unicode characters):

Non riesco a capire perchè mi da l'errore:
Traceback (most recent call last):
  File
"C:\Users\leona\AppData\Local\Programs\Python\Python37\Tools\scripts\posta\lists-Creare-inviare-messaggio-di-testo.py",
line 13, in <module>
    with open(textfile) as fp:
NameError: name 'textfile' is not defined
Il file c'è ed è bnella stessa cartella Cosè che non capisco?
Dov'è che sbaglio?
Grazie

*Le informazioni contenute in questo messaggio di posta elettronica sono
riservate e confidenziali e ne è vietata la diffusione in qualsiasi modo o
forma. Qualora Lei non fosse la persona destinataria del presentemessaggio,
La invitiamo a non diffonderlo e ad eliminarlo, dandone gentilmente
comunicazione al mittente.*
*The information included in this e-mail and any attachments are
confidential and may also be privileged.If you are not the correct
recipient, you are kindly requested to notify the sender immediately, to
cancel it and not to disclose the contents to any other person.*
_______________________________________________
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python

Reply via email to