fix: env mail

This commit is contained in:
Michael 2024-08-19 13:54:52 +02:00
parent fe66e6d6ba
commit e96224106b
3 changed files with 4 additions and 7 deletions

View File

@ -17,7 +17,7 @@ class EmailService extends Controller
{ {
$this->email_address_recepient = config('mail.email_address_recepient', null); $this->email_address_recepient = config('mail.email_address_recepient', null);
$this->email_prefix_subject = config('mail.email_prefix_subject', null); $this->email_prefix_subject = config('mail.email_prefix_subject', null);
$this->nextcloud_upload_folder_web_link = config('mail.nextcloud_upload_folder_web_link', false); $this->nextcloud_upload_folder_web_link = config('app.nextcloud_upload_folder_web_link', false);
} }
function send_export_via_email(string $from_date, string $to_date, string $file_name){ function send_export_via_email(string $from_date, string $to_date, string $file_name){
try{ try{

View File

@ -16,7 +16,7 @@ class ThirdPartyServices extends Controller
{ {
$this->third_party_integrations_nextcloud = $third_party_integrations_nextcloud || config('app.third_party_integrations_nextcloud', false); $this->third_party_integrations_nextcloud = $third_party_integrations_nextcloud || config('app.third_party_integrations_nextcloud', false);
$this->third_party_integrations_open_project = $third_party_integrations_open_project || config('app.third_party_integrations_open_project', false); $this->third_party_integrations_open_project = $third_party_integrations_open_project || config('app.third_party_integrations_open_project', false);
$this->email_send_allow = $email_send_allow || config('email.email_send_allow', false); $this->email_send_allow = $email_send_allow || config('app.email_send_allow', false);
$this->nextcloud_service = new \App\Http\Controllers\ThirdPartyServices\NextcloudService(); $this->nextcloud_service = new \App\Http\Controllers\ThirdPartyServices\NextcloudService();
$this->open_project_service = new \App\Http\Controllers\ThirdPartyServices\OpenProjectService(); $this->open_project_service = new \App\Http\Controllers\ThirdPartyServices\OpenProjectService();
$this->email_service = new \App\Http\Controllers\ThirdPartyServices\EmailService(); $this->email_service = new \App\Http\Controllers\ThirdPartyServices\EmailService();

View File

@ -96,12 +96,9 @@ return [
*/ */
'from' => [ 'from' => [
'address' => config('MAIL_FROM_ADDRESS', 'hello@example.com'), 'address' => config('MAIL_FROM_ADDRESS', 'export-git@congegni.net'),
'name' => config('MAIL_FROM_NAME', 'Example'), 'name' => config('MAIL_FROM_NAME', 'Congegni - Export git'),
], ],
'email_address_recepient' => env('EMAIL_ADDRESS_RECEPIENT', null), 'email_address_recepient' => env('EMAIL_ADDRESS_RECEPIENT', null),
'email_prefix_subject' => env('EMAIL_PREFIX_SUBJECT', null), 'email_prefix_subject' => env('EMAIL_PREFIX_SUBJECT', null),
'mail_from_address' => env('MAIL_FROM_ADDRESS', 'export - git@test . net'),
'mail_from_name' => env('MAIL_FROM_NAME', "Export git"),
]; ];