# Fehler beim automatischen Senden einer Email

**URL:** <https://forum.shopware.com/t/fehler-beim-automatischen-senden-einer-email/91038>\
**Category:** Shopware 5\
**Tags:** general, programming\
**Created:** [22. Oktober 2021 um 09:50 UTC](https://forum.shopware.com/t/fehler-beim-automatischen-senden-einer-email/91038 "2021-10-22T09:50:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![datema-nt](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@datema-nt](https://forum.shopware.com/u/datema-nt)\
**Post date:** [22. Oktober 2021 um 09:50 UTC](https://forum.shopware.com/t/fehler-beim-automatischen-senden-einer-email/91038/1 "2021-10-22T09:50:10Z")

</div>

Hallo,  
wir versenden in einem Plugin eine automatische Email wenn ein Import durchgelaufen ist.  
Wenn das Skript für den Import jetzt ausgeführt wird, wird an der Stelle `$mail = Shopware()->Mail();`  
der Fehler `Method "Shopware::Mail" not found failure` geworfen.  
Das ganze ist aufgetreten nachdem Shopware und PHP (auf 5.7.3 & 7.4) geupdatet wurden.  
Ich habe mir [SW-25707 - Remove deprecations for 5.7](https://github.com/shopware/shopware/commit/b2709e5fd57432e92f6921dddddb76a2f7f5d0b2) angeschaut, aber auf Anhieb nichts gefunden.

Weiß da jemand mehr darüber?
