# Senden eines Email Templates durch Plugin - Sprache

**URL:** <https://forum.shopware.com/t/senden-eines-email-templates-durch-plugin-sprache/18408>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [12. Februar 2014 um 22:35 UTC](https://forum.shopware.com/t/senden-eines-email-templates-durch-plugin-sprache/18408 "2014-02-12T22:35:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fun2game](https://avatars.discourse-cdn.com/v4/letter/f/13edae/32.png) [@fun2game](https://forum.shopware.com/u/fun2game)\
**Post date:** [12. Februar 2014 um 22:35 UTC](https://forum.shopware.com/t/senden-eines-email-templates-durch-plugin-sprache/18408/1 "2014-02-12T22:35:01Z")

</div>

Hallo Community, Ich bin gerade dabei in ein vorhandenes Plugin eine neue Funktion zu integrieren. Dabei soll eine Email an den Kunden versendet werden. Template wird im Backend konfiguriert. Das funktioniert soweit auch, allerdings wird es immer auf deutsch versendet, obwohl es eine Übersetzung gibt. Egal ob alles andere, dass durch das Plugin über die Templateverwaltung versendet wird englisch oder deutsch ist. Ich hoffe ihr könnt mir da weiter helfen. Bin noch Anfänger was Programmierung in PHP angeht. Der Codeausschnitt um den es geht: ` foreach ($orders['data'] as $order) { $customer = $customerResource-\>getone ($order['customerId']); if (strlen($config-\>verify) \> 0 && in\_array($order['paymentId'], $verify) && !in\_array($customer['groupKey'], $verify1)) { if(is\_numeric($config-\>statusverify)) { $orderResource-\>update($order['id'], array( 'orderStatusId' =\> $config-\>statusverify )); } $orderdetails= $orderResource-\>getone ($order['id']); $customerbilling= $customer['billing']; $email= $customer['email'] ; $context = array( 'order' =\> $order, 'orderdetails'=\> $orderdetails, 'customerbilling' =\> $customerbilling, ); $mail = Shopware()-\>TemplateMail()-\>createMail('sVERIFICATION', $context); $mail-\>addTo ($customer['email']); $mail-\>send(); } }` Vielen Dank im Voraus :shopware:

---

<div class="post-metadata">

**Author:** ![nexxoo](https://avatars.discourse-cdn.com/v4/letter/n/b9bd4f/32.png) [@nexxoo](https://forum.shopware.com/u/nexxoo)\
**Post date:** [6. März 2014 um 08:49 UTC](https://forum.shopware.com/t/senden-eines-email-templates-durch-plugin-sprache/18408/2 "2014-03-06T08:49:56Z")

</div>

habe genau das gleiche Problem hat den niemand eine lösung dazu!?
