Menu

## NewMessage extends Mailable
in package
implements ShouldQueue uses Queueable, SerializesModels

NewMessage.php : 20

NewMessage

Mailable class for sending new message notifications. Delivers custom messages and notifications to users with custom subject lines.

### Table of Contents

#### Interfaces

ShouldQueue

#### Properties

$content : string
  The message content
$sub : string
  The message subject
$user : mixed
  The recipient user

#### Methods

__construct() : void
  Create a new message instance.
build() : $this
  Build the message.

### Properties

#### $content

NewMessage.php : 29

The message content

`protected string $content`

#### $sub

NewMessage.php : 36

The message subject

`protected string $sub`

#### $user

NewMessage.php : 43

The recipient user

`protected mixed $user`

### Methods

#### __construct()

NewMessage.php : 53

Create a new message instance.

`public __construct(string $subject, string $content, mixed $user) : void`

##### Parameters

$subject : string

  The email subject

$content : string

  The email body content

$user : mixed

  The recipient user

#### build()

NewMessage.php : 69

Build the message.

`public build() : $this`

Builds the email message from the new_message template, replaces content placeholders, and adds custom headers.

##### Return values

$this

## Search results