RISOLTO [Python] Mandare PEC

Stato
Discussione chiusa ad ulteriori risposte.

Reaper007

Nuovo Utente
118
19
CPU
AMD Ryzen 3600X
Dissipatore
AMD Wraith
Scheda Madre
B450 GAMING PLUS MAX
HDD
SAMSUNG 970 EVO PLUS NVMe M.2
RAM
Corsair Ddr4 Vengeance Lpx @3200MHZ
GPU
Sapphire Nitro+ rx 5700 xt
OS
Windows 10
Ciao ragazzi,

mi interessava uno script in grado di spedire una PEC tramite Python 3.9, ho utilizzato questo codice cambiando l'indirizzo destinatario, mittente, l'smtp, la porta e le credenziali per l'accesso.

Quando lo eseguo non da errori, tuttavia la mail non arriva comunque.

Qualcuno sa cosa potrebbe essere?

Le credenziali e gli indirizzi email sono corretti anche se ho notato che sbagliando volontariamente la password della PEC non viene segnalata nessun errore.
 

Moffetta88

Moderatore
Staff Forum
Utente Èlite
20,465
12,882
CPU
i5-4690
Dissipatore
DEEPCOOL CAPTAIN 240EX
Scheda Madre
MSI Z97 U3 PLUS
HDD
KINGSTON SSD KC400 240GB
RAM
24GB BALLISTIX SPORT @2133MHz
GPU
STRIX GTX980 DC2OC
Audio
INTEGRATA
Monitor
AOC G2590VXQ
PSU
BEQUIET! System Power 7 500W
Case
DEEPCOOL MATREXX 55
Periferiche
NESSUNA
Net
EOLO 100
OS
UBUNTU/WINDOWS11
lo stai lanciando da un tuo servizio locale o da un server web?
 
  • Mi piace
Reazioni: Reaper007

daniel_tex

Utente Attivo
63
13
Lo utilizzo sia da exchange e zimbra che sono due mail server interni al datacenter. Sono pubblici perché ci sono le mail dei colleghi! Però le chiamate le faccio dal'interno. Ho sviluppato un web app e non ha senso fare chiamate esterne!

L'ho provato anche con google mail!

Funziona molto bene!
Post unito automaticamente:

Se devi inviare mail a più destinatari devi creare N oggetti per quanti sono i destinatari e supporta anche mail HTML!

?
 
  • Mi piace
Reazioni: Reaper007

Moffetta88

Moderatore
Staff Forum
Utente Èlite
20,465
12,882
CPU
i5-4690
Dissipatore
DEEPCOOL CAPTAIN 240EX
Scheda Madre
MSI Z97 U3 PLUS
HDD
KINGSTON SSD KC400 240GB
RAM
24GB BALLISTIX SPORT @2133MHz
GPU
STRIX GTX980 DC2OC
Audio
INTEGRATA
Monitor
AOC G2590VXQ
PSU
BEQUIET! System Power 7 500W
Case
DEEPCOOL MATREXX 55
Periferiche
NESSUNA
Net
EOLO 100
OS
UBUNTU/WINDOWS11
^__^ no dicevo a @Reaper007 se stava provando quello script python dal proprio pc o da un web server ^__^
 
  • Mi piace
Reazioni: Reaper007

Reaper007

Nuovo Utente
118
19
CPU
AMD Ryzen 3600X
Dissipatore
AMD Wraith
Scheda Madre
B450 GAMING PLUS MAX
HDD
SAMSUNG 970 EVO PLUS NVMe M.2
RAM
Corsair Ddr4 Vengeance Lpx @3200MHZ
GPU
Sapphire Nitro+ rx 5700 xt
OS
Windows 10
Ciao ragazzi, scusate se rispondo adesso, comunque alla fine ero riuscito a fare il tutto tramite Python, per chi avesse il mio stesso problema il funzionamento è identico a quello che si usa per mandare una mail normale.
 
Stato
Discussione chiusa ad ulteriori risposte.

Entra

oppure Accedi utilizzando
Discord Ufficiale Entra ora!