﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking
1824	Willkommens Gutschein/Coupon Problematik aufgrund von Schalter SEND_MAIL_ACCOUNT_CREATED	Torsten Riemer	somebody	"Wir versenden eine Account-Erstellungs E-Mail nur dann, wenn unter ""Konfiguration"" -> ""E-Mail Optionen"" -> ""E-Mail bei Kontoerstellung"" auf ""Ja"" steht.

Die Einstellung kam mit Shopversion 2.0.0.0 hinzu und wird standardmäßig auf ""Nein"" gesetzt.
Aktualisiert man nun einen 1.0x Shop, der entweder im Feld Willkommens Gutschein oder Coupon einen Wert einträgt und davon ausgeht, dass der Kunde diesen auch erhält, dann wird kein Code an den Kunden versendet.

Wir sollten den Code in der ""create_(guest_)account.php"" entsprechend überarbeiten:
{{{
      if (SEND_EMAILS == 'true' && SEND_MAIL_ACCOUNT_CREATED == 'true') {
        xtc_php_mail(EMAIL_SUPPORT_ADDRESS, 
                     EMAIL_SUPPORT_NAME, 
                     $email_address, 
                     $name, 
                     '', 
                     EMAIL_SUPPORT_REPLY_ADDRESS, 
                     EMAIL_SUPPORT_REPLY_ADDRESS_NAME, 
                     '', 
                     '', 
                     EMAIL_SUPPORT_SUBJECT, 
                     $html_mail, 
                     $txt_mail);
      }
}}}
Alternativ können wir auch einfach bei den Config-Feldern für den Willkommens Gutschein/Coupon einen Hinweis schreiben, dass die Einstellung ""Konfiguration"" -> ""E-Mail Optionen"" -> ""E-Mail bei Kontoerstellung"" auf ""Ja"" gestellt werden muss."	Bug/Fehler	closed	normal	modified-shop-2.0.6.0	Shop	2.0.5.1	fixed				
