# Email Notification - Artikel wieder verfügbar

**URL:** <https://forum.shopware.com/t/email-notification-artikel-wieder-verfugbar/53308>\
**Category:** Programmierung\
**Created:** [6. Juni 2018 um 13:50 UTC](https://forum.shopware.com/t/email-notification-artikel-wieder-verfugbar/53308 "2018-06-06T13:50:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)\
**Post date:** [6. Juni 2018 um 13:50 UTC](https://forum.shopware.com/t/email-notification-artikel-wieder-verfugbar/53308/1 "2018-06-06T13:50:29Z")

</div>

Die Notification ( [shopware/Bootstrap.php at 5.4 · shopware/shopware · GitHub](https://github.com/shopware/shopware/blob/5.4/engine/Shopware/Plugins/Default/Frontend/Notification/Bootstrap.php) ) läuft bei uns zu „schnell“ druch, sodass der Hoster meckert dass zu viele Emails auf einmal verschickt werden. Lösung wäre entweder ein Limit in der SQL oder, und das ist meine Frage, die Funktion sleep(1)&nbsp;&nbsp;([http://php.net/manual/de/function.sleep.php](http://php.net/manual/de/function.sleep.php)) zu nutzen. Könnte man das einfach in Zeile 358 einfügen? Welche Prozessprobleme könnten auftreten? Danke und Gruss.

---

<div class="post-metadata">

**Author:** ![optimondo](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/optimondo/32/12853_2.png) [@optimondo](https://forum.shopware.com/u/optimondo)\
**Post date:** [8. Juni 2018 um 06:34 UTC](https://forum.shopware.com/t/email-notification-artikel-wieder-verfugbar/53308/2 "2018-06-08T06:34:35Z")

</div>

Moin, ich würde es in der Z364 einfügen. Denke an das PHP Laufzeit-Limit, ggf. musste das überprüfen.

Du kannst auch die Zeit auf&nbsp;

```
sleep(0.5)

```

setzen. Das reichte meist schon aus.

Grüße.

---

<div class="post-metadata">

**Author:** ![derwunner](https://avatars.discourse-cdn.com/v4/letter/d/e5b9ba/32.png) [@derwunner](https://forum.shopware.com/u/derwunner)\
**Post date:** [8. Juni 2018 um 07:56 UTC](https://forum.shopware.com/t/email-notification-artikel-wieder-verfugbar/53308/3 "2018-06-08T07:56:43Z")

</div>

> [@optimondo schrieb:](https://forum.shopware.com/profile/29128/optimondo "optimondo")
> 
> Moin, ich würde es in der Z364 einfügen. Denke an das PHP Laufzeit-Limit, ggf. musste das überprüfen.
> 
> Du kannst auch die Zeit auf&nbsp;
> 
> sleep(0.5)
> 
> setzen. Das reichte meist schon aus.
> 
> Grüße.

oder usleep&nbsp;
