The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Mojolicious::Command::sendgrid - Command interface to the Sendgrid API

SYNOPSIS

  Usage: APPLICATION sendgrid ENDPOINT [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 lists available Sendgrid endpoints.

ATTRIBUTES

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

description

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

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

hint

  my $hint   = $sendgrid->hint;
  $sendgrid  = $sendgrid->hint('Foo');

Short hint shown after listing available sendgrid commands.

message

  my $msg    = $sendgrid->message;
  $sendgrid  = $sendgrid->message('Bar');

Short usage message shown before listing available sendgrid commands.

namespaces

  my $namespaces = $sendgrid->namespaces;
  $sendgrid      = $sendgrid->namespaces(['MyApp::Command::sendgrid']);

Namespaces to search for available sendgrid commands, defaults to Mojolicious::Command::sendgrid.

METHODS

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

help

  $sendgrid->help('app');

Print usage information for sendgrid command.

SEE ALSO

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