Skip to content

Commit

Permalink
Merge pull request #38 from offline-agency/fix-request-mail
Browse files Browse the repository at this point in the history
Fix invio request
  • Loading branch information
Giacomo Fabbian authored Sep 16, 2021
2 parents bfa12ed + 9904e48 commit 71e528c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Requests/Documenti.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public static function infoMail($data = [])
*/
public static function inviaMail($data = [])
{
$allowed = ['id', 'token', 'includi_documento', 'invia_ddt', 'invia_fa', 'includi_allegato', 'invia_copia', 'allega_pdf'];
$allowed = ['mail_mittente', 'mail_destinatario', 'oggetto', 'messaggio', 'id', 'token', 'includi_documento', 'invia_ddt', 'invia_fa', 'includi_allegato', 'invia_copia', 'allega_pdf'];
$required = ['mail_mittente', 'mail_destinatario', 'oggetto', 'messaggio'];

return Common::parseData($data, $allowed, $required);
Expand Down

0 comments on commit 71e528c

Please sign in to comment.