# Mailversand bei &quot;sUpdateOrderStatus&quot;

**URL:** <https://forum.shopware.com/t/mailversand-bei-quot-supdateorderstatus-quot/4955>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [31. Oktober 2011 um 19:41 UTC](https://forum.shopware.com/t/mailversand-bei-quot-supdateorderstatus-quot/4955 "2011-10-31T19:41:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tamario](https://avatars.discourse-cdn.com/v4/letter/t/e68b1a/32.png) [@tamario](https://forum.shopware.com/u/tamario)\
**Post date:** [31. Oktober 2011 um 19:41 UTC](https://forum.shopware.com/t/mailversand-bei-quot-supdateorderstatus-quot/4955/1 "2011-10-31T19:41:54Z")

</div>

Hallo zusammen, die Methode „sUpdateOrderStatus“ der Export-Api ändert den Status der Bestellung. Leider wird aber keine Status-Mail verschickt. Gibt es eine Funktion, die dann auch die entsprechende E-Mail verschickt? Vielen Dank für Eure Unterstützung!

---

<div class="post-metadata">

**Author:** ![MatthiasH](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@MatthiasH](https://forum.shopware.com/u/MatthiasH)\
**Post date:** [1. November 2011 um 20:34 UTC](https://forum.shopware.com/t/mailversand-bei-quot-supdateorderstatus-quot/4955/2 "2011-11-01T20:34:17Z")

</div>

Wenn ich das richtig sehe könnte dir sendStatusMail eventuell weiterhelfen.

---

<div class="post-metadata">

**Author:** ![tamario](https://avatars.discourse-cdn.com/v4/letter/t/e68b1a/32.png) [@tamario](https://forum.shopware.com/u/tamario)\
**Post date:** [2. November 2011 um 09:06 UTC](https://forum.shopware.com/t/mailversand-bei-quot-supdateorderstatus-quot/4955/3 "2011-11-02T09:06:06Z")

</div>

Danke für die Hilfe! In den API-Dokumentationen konnte ich die Methode nicht finden. Weißt du, wie ich die anwenden kann?

---

<div class="post-metadata">

**Author:** ![ShopFreelancer](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@ShopFreelancer](https://forum.shopware.com/u/ShopFreelancer)\
**Post date:** [21. November 2011 um 12:49 UTC](https://forum.shopware.com/t/mailversand-bei-quot-supdateorderstatus-quot/4955/4 "2011-11-21T12:49:47Z")

</div>

Ich habe das so gelöst: ` $order = Shopware()-\>Modules()-\>Order(); $mail = $order-\>createStatusMail($orderId, (int)$this-\>\_mailTemplateID); if($mail) { $order-\>sendStatusMail($mail); } ` Am besten in eigene Methode kapseln und nach erfolgreichem statusUpdate via API aufrufen.
