diff --git a/services/nginx/app/classes/email.php b/services/nginx/app/classes/email.php index baee87e2..a67d8d6a 100644 --- a/services/nginx/app/classes/email.php +++ b/services/nginx/app/classes/email.php @@ -470,10 +470,12 @@ use Psr\Http\Client\ClientExceptionInterface; $html .= self::generateHtmlFooter(); // Prepare attachment (departments flyer) $this->attachments = [ - [ - 'https://www.truckwash.dk/wp-content/uploads/2024/10/Truck-Wash_Flyer_A5.pdf', - 'Truck Wash Afdelinger.pdf' - ] + /** + * [ + * 'https://www.truckwash.dk/wp-content/uploads/2024/10/Truck-Wash_Flyer_A5.pdf', + * 'Truck Wash Afdelinger.pdf' + * ] + */ ]; // Send the email via MailerSend $this->sendEmailMailerSend( @@ -486,15 +488,4 @@ use Psr\Http\Client\ClientExceptionInterface; $this->attachments ); } - - private static function getBase64Signature(string $signature_name): ?string - { - $signature_path = WD . '/modules/email/assets/' . $signature_name . '-signature.png'; - if (file_exists($signature_path)) { - return base64_encode(file_get_contents($signature_path)); - } - return null; - } - - } \ No newline at end of file diff --git a/services/nginx/app/modules/email/templates/email_template_new_customer.php b/services/nginx/app/modules/email/templates/email_template_new_customer.php index 6e1eb142..430ca25a 100644 --- a/services/nginx/app/modules/email/templates/email_template_new_customer.php +++ b/services/nginx/app/modules/email/templates/email_template_new_customer.php @@ -67,7 +67,7 @@ class email_template_new_customer

- Tak for din registrering af getCustomerName((int)$this->customer_number))?> (getCustomerEcocomicData()->economic_customer->corporateIdentificationNumber)?>) som kunde hos Truck Wash. + Tak for din registrering af getCustomerName((int)$this->customer_number))?>getCustomerEcocomicData((int)$this->customer_number)->economic_customer->corporateIdentificationNumber) ? ' (' . (new users_o())->getCustomerEcocomicData((int)$this->customer_number)->economic_customer->corporateIdentificationNumber . ')' : '')?> som kunde hos Truck Wash.