WebService::SendGrid::Mail - An email class for sending a message through SendGrid
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 => 'email@example.com', from => 'firstname.lastname@example.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;
Allows you to send an email through the SendGrid Web API
Jonathan Lloyd <email@example.com>
This software is copyright (c) 2011 by Jonathan Lloyd <firstname.lastname@example.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.