Group
Extension

Matches 3

Mojo-Sendgrid ( S/SA/SADAMS/Mojo-Sendgrid-0.05.tar.gz, SADAMS, 2016; MetaCPAN )
Mojo-Sendgrid/lib/Mojo/Sendgrid.pm ( view source; MetaCPAN )
 missing" };
has apiurl => sub { $ENV{SENDGRID_APIURL} || 'https://api.sendgrid.com/api/mail.send.json' };

sub mail { Mojo::Sendgrid::Mail->new(sendgrid => shift, @_) }

1;

=encoding utf8

=head1 NA
Mojo-Sendgrid ( S/SA/SADAMS/Mojo-Sendgrid-0.05.tar.gz, SADAMS, 2016; MetaCPAN )
Mojo-Sendgrid/lib/Mojolicious/Command/sendgrid/mail/send.pm ( view source; MetaCPAN )
age Mojolicious::Command::sendgrid::mail::send;
use Mojo::Base 'Mojolicious::Command';

use Mojo::JSON 'j';
use Mojo::Sendgrid;

use Data::Dumper;
use Getopt::Long qw(GetOptionsFromArray :config no_au
$self->sendgrid->mail(to=>$to,from=>$from,subject=>$subject,text=>join("\n",<STDIN>))->send->res->json;
}

1;

=encoding utf8

=head1 NAME

Mojolicious::Command::sendgrid::mail::send - Send command of
email

=head1 DESCRIPTION

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

=head1 ATTRIBUTES

L<Mojolicious::Command::sendgrid::mail::send> inherits al
Mojo-Sendgrid ( S/SA/SADAMS/Mojo-Sendgrid-0.05.tar.gz, SADAMS, 2016; MetaCPAN )
Mojo-Sendgrid/lib/Mojo/Sendgrid/Mail.pm ( view source; MetaCPAN )
headers

A collection of key/value pairs in JSON format.

=head2 x_smtpapi

Please review the SMTP API to view documentation on what you can do with the
JSON headers.

=head1 METHODS

=head2 send

  $

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.