WebService::SendGrid::Mail - An email class for sending a message through SendGrid
version 1.02
use WebService::SendGrid::Mail; my $mail = WebService::SendGrid::Mail->new( api_user => 'jlloyd', # same username for logging into the website api_key => 'abcdefgh123456789', # same password for logging into the website to => 'jlloyd@cpan.org', from => 'jlloyd@cpan.org', subject => 'This is a test', text => 'This is a test message', html => '<html><head></head><body>This is a test HTML message</body></html>' ); $mail->send;
1;
Allows you to send an email through the SendGrid Web API
Jonathan Lloyd <webmaster@lifegames.org>
This software is copyright (c) 2011 by Jonathan Lloyd <webmaster@lifegames.org>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install WebService::SendGrid, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::SendGrid
CPAN shell
perl -MCPAN -e shell install WebService::SendGrid
For more information on module installation, please visit the detailed CPAN module installation guide.