-
Notifications
You must be signed in to change notification settings - Fork 266
Open
Description
Hello,
I discovered a very weird thing, which happens every now and then, when I send an email with yagmail:
I send emails with the follwing code:
yag = yagmail.SMTP(sender_email, password='XXX')
yag.send(
to=receiver_email,
cc=cc_email,
subject="[Carsharing] Erinnerung zum Eintragen von Fahrten'",
contents=mail_body
)
However, receiver_email and cc_email sometimes get different emails, allthough they get the same mail_body. Here is one example:
receiver_email got this email:
>
> Von: [email protected]
> Datum: 15. April 2025 um 08:03:47 MESZ
> An: alex@xxx, angelina@yyy
> Kopie: flokadillo@zzz
> Betreff: [KooWo-Carsharing] Erinnerung zum Eintragen von Fahrten'
>
>
> Hallo Alexander und Angelina!
>
> Für folgende Kalendereinträge gibt es aber keinen Eintrag im Abrechnungssheet:
>
> * 24.02.2025 08:00 - 24.02.2025 13:00, VW Golf Kombi (Kolaritsch), ? km
>
> Für folgende Abrechnungseinträge gibt es keinen Eintrag im Kalender:
>
> * 25.02.2025 13:00 - 25.02.2025 16:00, VW Caddy (NMK), 85.0 km
>
and cc_email got the following email:
Von: [email protected]
An: alex@xxx, angelina@yyy
CC: flokadillo@zzz
Gesendet: Dienstag, 15. April 2025 um 08:03:45 MESZ
Betreff: [KooWo-Carsharing] Erinnerung zum Eintragen von Fahrten'
Hallo Alexander und Angelina!
Für folgende Kalendereinträge gibt es aber keinen Eintrag im Abrechnungssheet:
* 01.04.2025 07:30 - 01.04.2025 12:00, Suzuki Alto (Siegfried), ? km
Für folgende Abrechnungseinträge gibt es keinen Eintrag im Kalender:
* 02.04.2025 12:30 - 02.04.2025 12:37, Renault Zoe (Rosners), 19.0 km
It turns out that cc_email gets the correct email, and reveiver_email gets an email that was send earlier, in this case one month ago.
What could be the problem here? Unfortunately, this does not happen every time I send an email, so it is hard to reproduce.
Thank you very much,
Florian
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels