#696 closed Aufgabe (fixed)
xtc_php_mail Funktion anpassen
| Reported by: | INETvisio | Owned by: | somebody |
|---|---|---|---|
| Priority: | niedrig | Milestone: | modified-shop-2.0.2.0 |
| Component: | Shop | Version: | 2.0.0.0 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description
Hallo modified,
In der xtc_php_mail Funktion gibt es ein "exit;", wenn die Emailversand fehlschlägt.
Könnte man den Exit hier rausnehmen und mit einem Rückgabe Wert vorsehen? Wie z.B. eine true bei Erfolg und eine false bei "Mailer Error".
Mailer Errors kommen meistens nicht vor, sobald man ein SMTP einsetzt, können diese Fehler spontan vorkommen und bei der Bestellprozess sieht es schrecklich aus.
Dann wäre es Möglich, bei der Modulentwicklung ein messageStack einzusetzen und den Admin informieren, dass Mail nicht versendet wurde.
Gruß,
Jürgen H.
Attachments (0)
Change History (9)
comment:2 by , 10 years ago
| Version: | 1.06 → 2.0 |
|---|
comment:3 by , 10 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:4 by , 10 years ago
Rückgabe wie true/false wäre in der Situation auch praktisch. Könnte man das noch erweitern?
comment:5 by , 10 years ago
Beispiel:
if (!$mail->Send()) {
trigger_error('Mailer Error - '.$mail->ErrorInfo, E_USER_WARNING);
return false;
}
return true;
comment:6 by , 10 years ago
| Resolution: | fixed |
|---|---|
| Status: | closed → reopened |
comment:7 by , 10 years ago
| Milestone: | modified-shop-2.00 → modified-shop-2.10 |
|---|---|
| Version: | 2.0 → 2.10 |
comment:9 by , 9 years ago
| Milestone: | modified-shop-2.1.0.0 → modified-shop-2.0.1.1 |
|---|---|
| Version: | 2.0.1.0 → 2.0.0.0 |

In Shopversion 1.06 r4642 SP2 sah der Code so aus:
if (!$mail->Send()) { echo "Message was not sent <p>"; echo "Mailer Error: ".$mail->ErrorInfo."</p>"; exit; }Für Shopversion 2.00 haben wir das bereits wie folgt überarbeitet:
if (!$mail->Send()) { trigger_error('Mailer Error - '.$mail->ErrorInfo, E_USER_WARNING); }