$data = [
[
'to' => '',
'subject' => 'este es el asunto con attach',
'message' => 'Este es el mensaje',
'bcc' => [], // strings comma separated
'cc' => [], // strings comma separated
'attach' => [
[
'filename' => '', // strings
'mimetype' => '', // strings
'encoded64' => "", // strings
]
],
]
];
$payload = [
'iss' => 'https://mailertoken.pedroruizhidalgo.es/',
'aud' => 'https://mailertoken.pedroruizhidalgo.es/',
'exp' => time() + MINUTE * 1,
'iat' => time(),
'nbf' => time() - SECOND,
'data' => $data,
];
© Pedro Ruiz Hidalgo