-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #209 from Sebbo94BY/Implement-sending-of-further-m…
…ails Implement sending of further mails
- Loading branch information
Showing
43 changed files
with
991 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,8 @@ MAIL_ENCRYPTION=null | |
MAIL_VERIFY_PEER=true | ||
MAIL_FROM_ADDRESS="[email protected]" | ||
MAIL_FROM_NAME="${APP_NAME}" | ||
MAIL_REPLY_TO_ADDRESS="${MAIL_FROM_ADDRESS}" | ||
MAIL_REPLY_TO_NAME="${MAIL_FROM_NAME}" | ||
|
||
MATOMO_ENABLED=false | ||
MATOMO_BASE_URL= | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?php | ||
|
||
namespace App\Mail; | ||
|
||
use App\Models\User; | ||
use Illuminate\Bus\Queueable; | ||
use Illuminate\Contracts\Queue\ShouldQueue; | ||
use Illuminate\Mail\Mailable; | ||
use Illuminate\Mail\Mailables\Content; | ||
use Illuminate\Mail\Mailables\Envelope; | ||
use Illuminate\Queue\SerializesModels; | ||
|
||
class SetupInstallerCompleted extends Mailable implements ShouldQueue | ||
{ | ||
use Queueable, SerializesModels; | ||
|
||
protected User $user; | ||
|
||
/** | ||
* Create a new message instance. | ||
*/ | ||
public function __construct(User $user) | ||
{ | ||
$this->user = $user; | ||
} | ||
|
||
/** | ||
* Get the message envelope. | ||
*/ | ||
public function envelope(): Envelope | ||
{ | ||
return new Envelope( | ||
to: $this->user->email, | ||
subject: __('views/emails/setup/installer/completed.subject'), | ||
); | ||
} | ||
|
||
/** | ||
* Get the message content definition. | ||
*/ | ||
public function content(): Content | ||
{ | ||
return new Content( | ||
markdown: 'emails.setup.installer.completed', | ||
with: [ | ||
'user' => $this->user, | ||
], | ||
); | ||
} | ||
|
||
/** | ||
* Get the attachments for the message. | ||
* | ||
* @return array<int, \Illuminate\Mail\Mailables\Attachment> | ||
*/ | ||
public function attachments(): array | ||
{ | ||
return []; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<?php | ||
|
||
namespace App\Mail; | ||
|
||
use App\Models\User; | ||
use Illuminate\Bus\Queueable; | ||
use Illuminate\Contracts\Queue\ShouldQueue; | ||
use Illuminate\Mail\Mailable; | ||
use Illuminate\Mail\Mailables\Content; | ||
use Illuminate\Mail\Mailables\Envelope; | ||
use Illuminate\Queue\SerializesModels; | ||
|
||
class UserCreated extends Mailable implements ShouldQueue | ||
{ | ||
use Queueable, SerializesModels; | ||
|
||
protected User $auth_user; | ||
|
||
protected User $user; | ||
|
||
protected string $initial_password; | ||
|
||
/** | ||
* Create a new message instance. | ||
*/ | ||
public function __construct(User $auth_user, User $user, string $initial_password) | ||
{ | ||
$this->auth_user = $auth_user; | ||
$this->user = $user; | ||
$this->initial_password = $initial_password; | ||
} | ||
|
||
/** | ||
* Get the message envelope. | ||
*/ | ||
public function envelope(): Envelope | ||
{ | ||
return new Envelope( | ||
to: $this->user->email, | ||
subject: __('views/emails/users/created.subject', ['app_name' => config('app.name')]), | ||
); | ||
} | ||
|
||
/** | ||
* Get the message content definition. | ||
*/ | ||
public function content(): Content | ||
{ | ||
return new Content( | ||
markdown: 'emails.users.created', | ||
with: [ | ||
'auth_user' => $this->auth_user, | ||
'user' => $this->user, | ||
'initial_password' => $this->initial_password, | ||
], | ||
); | ||
} | ||
|
||
/** | ||
* Get the attachments for the message. | ||
* | ||
* @return array<int, \Illuminate\Mail\Mailables\Attachment> | ||
*/ | ||
public function attachments(): array | ||
{ | ||
return []; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,8 +93,13 @@ | |
*/ | ||
|
||
'from' => [ | ||
'address' => env('MAIL_FROM_ADDRESS', '[email protected]'), | ||
'name' => env('MAIL_FROM_NAME', 'Example'), | ||
'address' => env('MAIL_FROM_ADDRESS', '[email protected]'), | ||
'name' => env('MAIL_FROM_NAME', config('app.name')), | ||
], | ||
|
||
'reply_to' => [ | ||
'address' => env('MAIL_REPLY_TO_ADDRESS', '[email protected]'), | ||
'name' => env('MAIL_REPLY_TO_NAME', config('app.name')), | ||
], | ||
|
||
/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
laravel/lang/de/views/emails/setup/installer/completed.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
/** | ||
* Mailable Subject | ||
*/ | ||
'subject' => 'Installation abgeschlossen', | ||
|
||
/** | ||
* Mailable Body | ||
*/ | ||
'greet_user' => 'Hallo <i>:username</i>', | ||
'installation_completed' => 'Du hast das Projekt <a href="https://github.com/Sebbo94BY/teamspeak-dynamic-banner" target="_blank">TeamSpeak Dynamischer Banner</a> erfolgreich installiert.', | ||
'check_system_status' => 'Zunächst einmal solltest du überprüfen, ob deine Anwendung voll funktionsfähig ist oder ob etwas zu beheben ist', | ||
'open_system_status_page_button' => 'Öffne <b>Administration</b> > <b>System Status</b>', | ||
'next_steps' => 'Nachdem du dich vergewissert hast, dass alles voll funktionsfähig ist, sollten deine nächsten Schritte folgende sein', | ||
'next_steps_download_install_ttf_fonts' => 'Lade eine oder mehrere TrueType-Schriften herunter und installiere sie, wie unter <i>Administration</i> > <i>Schriftarten</i> erklärt', | ||
'next_steps_add_configure_instance' => 'Füge und konfiguriere eine Instanz unter <i>Instanzen</i>', | ||
'next_steps_start_instance' => 'Starte die neu erstellte Instanz, um die entsprechenden Variablen zu sammeln', | ||
'next_steps_upload_templates' => 'Lade unter <i>Vorlagen</i> eine oder mehrere Vorlagen hoch', | ||
'next_steps_add_banner' => 'Füge unter <i>Banner</i> einen neuen Banner hinzu', | ||
'next_steps_add_templates_to_banner' => 'Füge eine oder mehrere kürzlich hochgeladene Vorlagen zum Banner hinzu', | ||
'next_steps_configure_banner_templates' => 'Konfiguriere deine Bannervorlagen mit einigen Texten', | ||
'next_steps_enable_banner_templates' => 'Aktiviere die Bannervorlagen in der Übersicht', | ||
'next_steps_configure_banner_api_url' => 'Konfiguriere die Banner API URL in deinem TeamSpeak Server als Hostbanner Gfx URL', | ||
'github_feature_request_issue_hint' => 'Du kannst <a href="https://github.com/Sebbo94BY/teamspeak-dynamic-banner/issues/new/choose" target="_blank">auf GitHub</a> gerne eine Feature-Anfrage stellen oder ein Problem melden.', | ||
'automated_email_hint' => 'Dies ist eine automatisierte E-Mail. Bitte antworte nicht auf diese E-Mail.', | ||
'closing_words' => 'Viel Spaß mit der Anwendung', | ||
|
||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
/** | ||
* Mailable Subject | ||
*/ | ||
'subject' => 'Einladung zu :app_name', | ||
|
||
/** | ||
* Mailable Body | ||
*/ | ||
'greet_user' => 'Hallo <i>:username</i>', | ||
'invited_by' => 'Du wurdest durch <i>:username</i> zu <i>:app_name</i> eingeladen.', | ||
'initial_password' => 'Dein initiales Passwort lautet <code>:initial_password</code>. Bitte ändere dies sofort nach dem Login.', | ||
'open_login_page_button' => 'Login öffnen', | ||
'automated_email_hint' => 'Dies ist eine automatisierte E-Mail. Bitte antworte nicht auf diese E-Mail.', | ||
'closing_words' => 'Danke', | ||
|
||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.