mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-21 20:48:00 +01:00
#25: Improved email branding and CASL compliance.
This commit is contained in:
parent
1e670b673f
commit
f85e8fc43a
4 changed files with 29 additions and 21 deletions
|
@ -20,6 +20,7 @@
|
|||
|
||||
namespace Poniverse\Ponyfm\Mail;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Mail\Mailable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
@ -126,11 +127,13 @@ abstract class BaseNotification extends Mailable {
|
|||
->view("emails.html.notifications.{$templateName}")
|
||||
->text("emails.plaintext.notifications.{$templateName}")
|
||||
->with(array_merge($extraVariables, [
|
||||
'notificationUrl' => $this->generateNotificationUrl(),
|
||||
'unsubscribeUrl' => $this->generateUnsubscribeUrl(),
|
||||
'thumbnailUrl' => $this->activityRecord->thumbnail_url,
|
||||
'recipientName' => $this->emailRecord->getUser()->display_name,
|
||||
'accountSettingsUrl' => $this->emailRecord->getUser()->getSettingsUrl(),
|
||||
'notificationUrl' => $this->generateNotificationUrl(),
|
||||
'unsubscribeUrl' => $this->generateUnsubscribeUrl(),
|
||||
'thumbnailUrl' => $this->activityRecord->thumbnail_url,
|
||||
'recipientName' => $this->emailRecord->getUser()->display_name,
|
||||
'accountSettingsUrl' => $this->emailRecord->getUser()->getSettingsUrl(),
|
||||
'replyEmailAddress' => config('mail.from.address'),
|
||||
'currentYear' => Carbon::now()->year,
|
||||
]));
|
||||
}
|
||||
}
|
||||
|
|
BIN
resources/emails/src/assets/img/email-header.jpg
Normal file
BIN
resources/emails/src/assets/img/email-header.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 50 KiB |
|
@ -16,28 +16,33 @@
|
|||
<container>
|
||||
<row>
|
||||
<columns>
|
||||
<h1>Pony.fm</h1>
|
||||
<center><h1><img src="\{{ $message->embed(resource_path('emails/src/assets/img/email-header.jpg')) }}" alt="Pony.fm - Unlimited Pony Music"/></h1></center>
|
||||
</columns>
|
||||
</row>
|
||||
{{!-- Pages you create in the src/pages/ folder are inserted here when the flattened emails are created. --}}
|
||||
{{> body}}
|
||||
<row><columns></columns></row>
|
||||
<row>
|
||||
<columns large="6">
|
||||
<h6>What's this?</h6>
|
||||
<p><small>Pony.fm can now send you notifications via email! You can control what you get email notifications for in your <a href="\{{ $accountSettingsUrl }}">account settings</a>.</small></p>
|
||||
<p><small><a href="\{{ $unsubscribeUrl }}" target="_blank">Unsubscribe from this kind of email</a></small></p>
|
||||
<columns large="7">
|
||||
<h4><small>Why did I get this email?</small></h4>
|
||||
<p><small>Pony.fm can now email your notifications to you! Change what
|
||||
you get email notifications for in your <a href="\{{ $accountSettingsUrl }}">account settings</a>.
|
||||
You can also <a href="\{{ $unsubscribeUrl }}" target="_blank">unsubscribe</a> from this kind of email.</small></p>
|
||||
</columns>
|
||||
<columns large="6">
|
||||
<columns large="5">
|
||||
<br>
|
||||
<p><small>
|
||||
Sent with ♥ to \{{ $recipientName }}<br>
|
||||
<br>
|
||||
Poniverse<br>
|
||||
248-1641 Lonsdale Avenue<br>
|
||||
North Vancouver<br>
|
||||
BC V7M 2J5<br>
|
||||
Canada
|
||||
</small></p>
|
||||
<p>
|
||||
<small><strong>Any questions?</strong> Reply to this email
|
||||
or hit us up at <a href="\{{ $replyEmailAddress }}">\{{ $replyEmailAddress }}</a>!
|
||||
</small>
|
||||
</p>
|
||||
<p><small>Sent with ♥ to \{{ $recipientName }}</small></p>
|
||||
</columns>
|
||||
</row>
|
||||
<row>
|
||||
<columns>
|
||||
<p class="text-center"><small>Pony.fm, a Poniverse project<br>
|
||||
248-1641 Lonsdale Avenue, North Vancouver, BC V7M 2J5, Canada</small></p>
|
||||
</columns>
|
||||
</row>
|
||||
</container>
|
||||
|
|
|
@ -11,7 +11,7 @@ layout: notification
|
|||
|
||||
<a href="\{{ $notificationUrl }}" target="_blank">
|
||||
<row>
|
||||
<columns small="4" large="2" class="large-offset-2">
|
||||
<columns small="4" large="2" class="large-offset-1">
|
||||
<img src="\{{ $message->embed($thumbnailUrl) }}" />
|
||||
</columns>
|
||||
<columns small="8">
|
||||
|
|
Loading…
Reference in a new issue