fixed emailing error
This commit is contained in:
@@ -163,7 +163,7 @@ class WarehouseEShopOrderController extends TTCrud {
|
||||
if ($isDryRun) {
|
||||
self::returnJson(['success' => true, 'message' => 'E-Mail Body wurde erstellt', 'body' => $body]);
|
||||
} else {
|
||||
foreach (["ftth-versand@triotronik.com", "einkauf@xinon.at"] as $emailAddr) {
|
||||
foreach (["ftth-versand@triotronik.com", "eshop-versand@xinon.at"] as $emailAddr) {
|
||||
$email = new Emailnotification();
|
||||
$email->setSubject("Bestellbestätigung Bestellung #$paddedId");
|
||||
$email->setBody($body);
|
||||
@@ -361,7 +361,7 @@ class WarehouseEShopOrderController extends TTCrud {
|
||||
|
||||
$user = UserModel::getOne($json['createBy']);
|
||||
|
||||
foreach (["office@xinon.at", $user->email] as $emailAddr) {
|
||||
foreach (["eshop-versand@xinon.at", $user->email] as $emailAddr) {
|
||||
$email = new Emailnotification();
|
||||
$email->setSubject("Bestellbestätigung Bestellung #$subjectId - Referenz: " . $json['extRef']);
|
||||
$email->setBody($body);
|
||||
|
||||
@@ -144,7 +144,7 @@ Vue.component('warehouse-e-shop-order', {
|
||||
this.openSingleOrderEmailModal = !!this.singleOrderEmailModalId;
|
||||
this.singleOrderEmailModalText = null;
|
||||
if (this.singleOrderEmailModalId) {
|
||||
axios.get(`${window['TT_CONFIG']['BASE_PATH']}/WarehouseEShopOrder/singleOrderEmail?id=${this.singleOrderEmailModalId}&dryRun=true`)
|
||||
axios.get(`${window['TT_CONFIG']['BASE_PATH']}/WarehouseEShopOrder/singleOrderEmail?id=${this.singleOrderEmailModalId}`)
|
||||
.then(response => this.singleOrderEmailModalText = response.data)
|
||||
.catch(error => window.notify('error', error.response?.data?.message || 'Ein Fehler ist aufgetreten'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user