NAME

Mojolicious::Command::sendgrid::mail::send - Send command of the Sendgrid API mail endpoint.

SYNOPSIS

Usage: APPLICATION sendgrid mail send [OPTIONS]

  export SENDGRID_APIKEY='your sendgrid api key'
  mojo sendgrid mail send -t a@b.com -f x@y.com -s Subject < /tmp/file

Options:
  -h, --help      Show this summary of available options
  -t, --to        Email address of the recipient
  -f, --from      Email address of the sender
  -s, --subject   Subject of the email

DESCRIPTION

Mojolicious::Command::sendgrid::mail::send sends emails. Prints the json response to STDOUT.

ATTRIBUTES

Mojolicious::Command::sendgrid::mail::send inherits all attributes from Mojolicious::Command and implements the following new ones.

description

my $description = $app->description;
$app            = $app->description('Foo');

Short description of this command, used for the command list.

usage

my $usage = $app->usage;
$app      = $app->usage('Foo');

Usage information for this command, used for the help screen.

METHODS

Mojolicious::Command::sendgrid::mail::send inherits all methods from Mojolicious::Command and implements the following new ones.

run

$app->run(@ARGV);

Run this command.

SEE ALSO

Mojolicious, Mojolicious::Guides, http://mojolicious.org.