<?php
namespace Illuminate\Mail\Mailables;
class Address
{
/**
* The recipient's email address.
*
* @var string
*/
public $address;
/**
* The recipient's name.
*
* @var string|null
*/
public $name;
/**
* Create a new address instance.
*
* @param string $address
* @param string|null $name
* @return void
*/
public function __construct(string $address, string $name = null)
{
$this->address = $address;
$this->name = $name;
}
}
In case of an error, the API will return an error response containing a specific error code 400, 403 Failed and a user-friendly message. Refer to our API documentation for a comprehensive list of error codes and their descriptions.