# Shopware Mailer geht mit "smtp" nicht, mit "mail" aber schon

**URL:** <https://forum.shopware.com/t/shopware-mailer-geht-mit-smtp-nicht-mit-mail-aber-schon/62645>\
**Category:** Allgemein\
**Created:** [28. Oktober 2019 um 11:39 UTC](https://forum.shopware.com/t/shopware-mailer-geht-mit-smtp-nicht-mit-mail-aber-schon/62645 "2019-10-28T11:39:44Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![martinklich](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@martinklich](https://forum.shopware.com/u/martinklich)\
**Post date:** [28. Oktober 2019 um 11:39 UTC](https://forum.shopware.com/t/shopware-mailer-geht-mit-smtp-nicht-mit-mail-aber-schon/62645/1 "2019-10-28T11:39:44Z")

</div>

Hallo,

woran kann das liegen das der Mailer in Shopware (Für die Bestellbestätigung usw.) als Methode “smtp” nichts sendet und im Frontend die Meldung kommt, dass die Bestätigungmail nicht gesendet werden konnte, das ganze mit Mehtode “mail” aber einwandfrei funktioniert, mit genau den selben settings. Ich nutze 465 ssl, der port ist auch frei.&nbsp;

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [28. Oktober 2019 um 11:41 UTC](https://forum.shopware.com/t/shopware-mailer-geht-mit-smtp-nicht-mit-mail-aber-schon/62645/2 "2019-10-28T11:41:40Z")

</div>

Mail nutzt die interne Funktion von PHP, dafür muss nur dein Server korrekt eingerichtet sein, alle anderen Settings sind egal.

Für SMTP müssen die Settings im Backend alle korrekt sein.

---

<div class="post-metadata">

**Author:** ![martinklich](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@martinklich](https://forum.shopware.com/u/martinklich)\
**Post date:** [28. Oktober 2019 um 12:06 UTC](https://forum.shopware.com/t/shopware-mailer-geht-mit-smtp-nicht-mit-mail-aber-schon/62645/3 "2019-10-28T12:06:52Z")

</div>

> [@Moritz Naczenski schrieb:](https://forum.shopware.com/profile/14574/Moritz%20Naczenski "Moritz%20Naczenski")
> 
> Mail nutzt die interne Funktion von PHP, dafür muss nur dein Server korrekt eingerichtet sein, alle anderen Settings sind egal.
> 
> Für SMTP müssen die Settings im Backend alle korrekt sein.

Ok nur ich frage mich was soll da falsch sein? Gibt der iwo nen Log dafür aus?&nbsp;

---

<div class="post-metadata">

**Author:** ![martinklich](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@martinklich](https://forum.shopware.com/u/martinklich)\
**Post date:** [29. Oktober 2019 um 21:41 UTC](https://forum.shopware.com/t/shopware-mailer-geht-mit-smtp-nicht-mit-mail-aber-schon/62645/4 "2019-10-29T21:41:44Z")

</div>

Jemand eine Idee?

---

<div class="post-metadata">

**Author:** ![kulli](https://avatars.discourse-cdn.com/v4/letter/k/a3d4f5/32.png) [@kulli](https://forum.shopware.com/u/kulli)\
**Post date:** [30. Oktober 2019 um 04:49 UTC](https://forum.shopware.com/t/shopware-mailer-geht-mit-smtp-nicht-mit-mail-aber-schon/62645/5 "2019-10-30T04:49:23Z")

</div>

Ideen:

-mail host falsch

-port frei, aber falsch (andere Servereinstellung)

-hostname falsch (Leer lassen)

-passwort mit leerzeichen kopiert

-passwort falsch eingegeben

-falsche Authentifizierung

-falscher Benutzername

-Shop-Betreiber Email in den Grundeinstellungen nicht oder falsch hinterlegt

-Email-Server falsch konfiguriert

-undsoweiter undsoweiter

&nbsp;

---

<div class="post-metadata">

**Author:** ![martinklich](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@martinklich](https://forum.shopware.com/u/martinklich)\
**Post date:** [30. Oktober 2019 um 15:29 UTC](https://forum.shopware.com/t/shopware-mailer-geht-mit-smtp-nicht-mit-mail-aber-schon/62645/6 "2019-10-30T15:29:57Z")

</div>

Bekomme jetzt in der Mail die an den Kunden soll folgendes im Backend angezeigt:

&nbsp;

```
Message:	
Could not send order mail for ordernumber 356004 to address korih82673@3dmail.top
Time:	
2019-10-30T16:23:23.458276+0100
Channel:	
core
Context:	
{
"exception": {
"class": "Zend_Mail_Protocol_Exception",
"message": "Connection refused",
"code": 0,
"file": "/home/scootergigant/public_html/engine/Library/Zend/Mail/Protocol/Abstract.php:273",
"trace": [
"/home/scootergigant/public_html/engine/Library/Zend/Mail/Protocol/Smtp.php:168",
"/home/scootergigant/public_html/engine/Library/Zend/Mail/Transport/Smtp.php:195",
"/home/scootergigant/public_html/engine/Library/Zend/Mail/Transport/Abstract.php:343",
"/home/scootergigant/public_html/engine/Library/Zend/Mail.php:1176",
"/home/scootergigant/public_html/engine/Library/Enlight/Components/Mail.php:358",
"/home/scootergigant/public_html/custom/plugins/BlmediaAddBccToOutgoingMails/Decorators/Mail/Blmedia_Enlight_Components_Mail.php:70",
"/home/scootergigant/public_html/engine/Shopware/Core/sOrder.php:986",
"/home/scootergigant/public_html/engine/Shopware/Core/sOrder.php:842",
"/home/scootergigant/public_html/engine/Shopware/Controllers/Frontend/Checkout.php:924",
"/home/scootergigant/public_html/engine/Shopware/Controllers/Frontend/Checkout.php:428",
"/home/scootergigant/public_html/engine/Library/Enlight/Controller/Action.php:193",
"/home/scootergigant/public_html/engine/Library/Enlight/Controller/Dispatcher/Default.php:549",
"/home/scootergigant/public_html/engine/Library/Enlight/Controller/Front.php:222",
"/home/scootergigant/public_html/engine/Shopware/Kernel.php:202",
"/home/scootergigant/public_html/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php:102",
"/home/scootergigant/public_html/vendor/symfony/http-kernel/HttpCache/HttpCache.php:448",
"/home/scootergigant/public_html/engine/Shopware/Components/HttpCache/AppCache.php:268",
"/home/scootergigant/public_html/vendor/symfony/http-kernel/HttpCache/HttpCache.php:238",
"/home/scootergigant/public_html/vendor/symfony/http-kernel/HttpCache/HttpCache.php:255",
"/home/scootergigant/public_html/engine/Shopware/Components/HttpCache/AppCache.php:143",
"/home/scootergigant/public_html/vendor/symfony/http-kernel/HttpCache/HttpCache.php:181",
"/home/scootergigant/public_html/engine/Shopware/Components/HttpCache/AppCache.php:116",
"/home/scootergigant/public_html/shopware.php:122"
]
}
}
request:	
{
"uri": "/checkout/finish",
"method": "POST",
"query": {
"module": "frontend",
"controller": "checkout",
"action": "finish"
},
"post": {
"sComment": "",
"sAGB": "on",
"__csrf_token": "hXd5UGIV3n9FRHNfarwIfxgO0G9Qce",
"orderNumber": 356004
}
}
session:	
No session data available
shopId:	
1
shopName:	
scootergigant.com

```

&nbsp;

Das Passwort ist korrekt, der Rest ebenfalls.

---

<div class="post-metadata">

**Author:** ![kulli](https://avatars.discourse-cdn.com/v4/letter/k/a3d4f5/32.png) [@kulli](https://forum.shopware.com/u/kulli)\
**Post date:** [30. Oktober 2019 um 15:35 UTC](https://forum.shopware.com/t/shopware-mailer-geht-mit-smtp-nicht-mit-mail-aber-schon/62645/7 "2019-10-30T15:35:40Z")

</div>

Ich zitiere mal:

“Connection refused”

" Dies kann der Fall sein, wenn Sie versuchen, sich mit einem Service zu verbinden, der nicht aktiv ist. Sie haben also möglicherweise einen falschen Server angegeben, oder der gewünschte Dienst (SMTP, POP3 oder IMAP) steht auf diesem Server nicht zur Verfügung. Es kann auch sein, dass der Dienst einen anderen Port benutzt. "

&nbsp;

---

<div class="post-metadata">

**Author:** ![martinklich](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@martinklich](https://forum.shopware.com/u/martinklich)\
**Post date:** [30. Oktober 2019 um 16:12 UTC](https://forum.shopware.com/t/shopware-mailer-geht-mit-smtp-nicht-mit-mail-aber-schon/62645/8 "2019-10-30T16:12:43Z")

</div>

> [@kulli schrieb:](https://forum.shopware.com/profile/14033/kulli "kulli")
> 
> Ich zitiere mal:
> 
> „Connection refused“
> 
> " Dies kann der Fall sein, wenn Sie versuchen, sich mit einem Service zu verbinden, der nicht aktiv ist. Sie haben also möglicherweise einen falschen Server angegeben, oder der gewünschte Dienst (SMTP, POP3 oder IMAP) steht auf diesem Server nicht zur Verfügung. Es kann auch sein, dass der Dienst einen anderen Port benutzt. "

Ich habe einen anderen smtp genutzt, der auf jeden fall aktiv ist, selber Fehler!!!&nbsp;

&nbsp;

Code:

```
Message:	
Could not send order mail for ordernumber 356006 to address markusmeklos@dmailpro.net
Time:	
2019-10-30T17:09:45.569763+0100
Channel:	
core
Context:	
{
"exception": {
"class": "Zend_Mail_Protocol_Exception",
"message": "Starttls is unsupported SSL type",
"code": 0,
"file": "/home/scootergigant/public_html/engine/Library/Zend/Mail/Protocol/Smtp.php:145",
"trace": [
"/home/scootergigant/public_html/engine/Library/Zend/Mail/Protocol/Smtp/Auth/Login.php:75",
"/home/scootergigant/public_html/engine/Library/Zend/Mail/Transport/Smtp.php:194",
"/home/scootergigant/public_html/engine/Library/Zend/Mail/Transport/Abstract.php:343",
"/home/scootergigant/public_html/engine/Library/Zend/Mail.php:1176",
"/home/scootergigant/public_html/engine/Library/Enlight/Components/Mail.php:358",
"/home/scootergigant/public_html/custom/plugins/BlmediaAddBccToOutgoingMails/Decorators/Mail/Blmedia_Enlight_Components_Mail.php:70",
"/home/scootergigant/public_html/engine/Shopware/Core/sOrder.php:986",
"/home/scootergigant/public_html/engine/Shopware/Core/sOrder.php:842",
"/home/scootergigant/public_html/engine/Shopware/Controllers/Frontend/Checkout.php:924",
"/home/scootergigant/public_html/engine/Shopware/Controllers/Frontend/Checkout.php:428",
"/home/scootergigant/public_html/engine/Library/Enlight/Controller/Action.php:193",
"/home/scootergigant/public_html/engine/Library/Enlight/Controller/Dispatcher/Default.php:549",
"/home/scootergigant/public_html/engine/Library/Enlight/Controller/Front.php:222",
"/home/scootergigant/public_html/engine/Shopware/Kernel.php:202",
"/home/scootergigant/public_html/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php:102",
"/home/scootergigant/public_html/vendor/symfony/http-kernel/HttpCache/HttpCache.php:448",
"/home/scootergigant/public_html/engine/Shopware/Components/HttpCache/AppCache.php:268",
"/home/scootergigant/public_html/vendor/symfony/http-kernel/HttpCache/HttpCache.php:238",
"/home/scootergigant/public_html/vendor/symfony/http-kernel/HttpCache/HttpCache.php:255",
"/home/scootergigant/public_html/engine/Shopware/Components/HttpCache/AppCache.php:143",
"/home/scootergigant/public_html/vendor/symfony/http-kernel/HttpCache/HttpCache.php:181",
"/home/scootergigant/public_html/engine/Shopware/Components/HttpCache/AppCache.php:116",
"/home/scootergigant/public_html/shopware.php:122"
]
}
}
request:	
{
"uri": "/checkout/finish",
"method": "POST",
"query": {
"module": "frontend",
"controller": "checkout",
"action": "finish"
},
"post": {
"sComment": "",
"sAGB": "on",
"sNewsletter": "1",
"__csrf_token": "RcD9lVGscegLXxu8RwVO1WjXNnldiA",
"orderNumber": 356006
}
}
session:	
No session data available
shopId:	
1
shopName:	
scootergigant.com

```

&nbsp;

Es liegt eindeutig an shopware!!! Mal wieder irgendein Bug!

---

<div class="post-metadata">

**Author:** ![kulli](https://avatars.discourse-cdn.com/v4/letter/k/a3d4f5/32.png) [@kulli](https://forum.shopware.com/u/kulli)\
**Post date:** [30. Oktober 2019 um 16:33 UTC](https://forum.shopware.com/t/shopware-mailer-geht-mit-smtp-nicht-mit-mail-aber-schon/62645/9 "2019-10-30T16:33:26Z")

</div>

Eindeutig, Ganz Klar. Dann mach einen Issue auf: [https://issues.shopware.com](https://issues.shopware.com)

---

<div class="post-metadata">

**Author:** ![Arya\_Svitkona](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/arya_svitkona/32/15319_2.png) [@Arya\_Svitkona](https://forum.shopware.com/u/Arya_Svitkona)\
**Post date:** [30. Oktober 2019 um 19:54 UTC](https://forum.shopware.com/t/shopware-mailer-geht-mit-smtp-nicht-mit-mail-aber-schon/62645/10 "2019-10-30T19:54:19Z")

</div>

Muss ich “kulli” ganz recht geben 😉

&nbsp;

Schau dir mal die Zend Exception an, ev. hilft dir das weiter 🙂

“message”: “Starttls is unsupported SSL type”

[https://docs.shopware.com/de/shopware-5-de/einstellungen/e-mails#e-mails-werden-nicht-per-smtp-versendet](https://docs.shopware.com/de/shopware-5-de/einstellungen/e-mails#e-mails-werden-nicht-per-smtp-versendet)

LG Arya
