NAME
Mojolicious::Command::sendgrid::mail - Command interface to the mail endpoint of the Sendgrid API
SYNOPSIS
Usage: APPLICATION sendgrid mail COMMAND [OPTIONS]
export SENDGRID_APIKEY='your sendgrid api key'
mojo sendgrid mail send -t a@b.com -f x@y.com -s Subject < /tmp/file
DESCRIPTION
Mojolicious::Command::sendgrid::mail lists available Sendgrid commands for the mail endpoint.
ATTRIBUTES
Mojolicious::Command::sendgrid::mail inherits all attributes from Mojolicious::Commands and implements the following new ones.
description
my $description = $mail->description;
$mail = $mail->description('Foo');
Short description of this command, used for the command list.
hint
my $hint = $mail->hint;
$mail = $mail->hint('Foo');
Short hint shown after listing available sendgrid commands.
message
my $msg = $mail->message;
$mail = $mail->message('Bar');
Short usage message shown before listing available sendgrid commands.
namespaces
my $namespaces = $mail->namespaces;
$mail = $mail->namespaces(['MyApp::Command::sendgrid::mail']);
Namespaces to search for available sendgrid commands, defaults to Mojolicious::Command::sendgrid::mail.
METHODS
Mojolicious::Command::sendgrid::mail inherits all methods from Mojolicious::Commands and implements the following new ones.
help
$mail->help('app');
Print usage information for sendgrid command.