the browser-facing portion of osu!
at master 1.1 kB view raw
1<?php 2 3// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0. 4// See the LICENCE file in the repository root for full licence text. 5 6namespace App\Mail; 7 8use Illuminate\Bus\Queueable; 9use Illuminate\Contracts\Queue\ShouldQueue; 10use Illuminate\Mail\Mailable; 11use Illuminate\Queue\SerializesModels; 12 13class UserVerification extends Mailable implements ShouldQueue 14{ 15 use Queueable, SerializesModels; 16 17 public $keys; 18 public $user; 19 public $requestCountry; 20 21 /** 22 * Create a new message instance. 23 * 24 * @return void 25 */ 26 public function __construct($attributes) 27 { 28 $this->keys = $attributes['keys']; 29 $this->user = $attributes['user']; 30 $this->requestCountry = $attributes['requestCountry']; 31 } 32 33 /** 34 * Build the message. 35 * 36 * @return $this 37 */ 38 public function build() 39 { 40 return $this 41 ->text('emails.user_verification') 42 ->subject(osu_trans('mail.user_verification.subject')); 43 } 44}