Email::Sender::Transport::SQLite - deliver mail to an sqlite db for testing
version 0.092002
This transport makes deliveries to an SQLite database, creating it if needed. The SQLite transport is intended for testing programs that fork or that otherwise can't use the Test transport. It is not meant for robust, long-term storage of mail.
The database will be created in the file named by the db_file attribute, which defaults to email.db.
db_file
The database will have two tables:
CREATE TABLE emails ( id INTEGER PRIMARY KEY, body varchar NOT NULL, env_from varchar NOT NULL ); CREATE TABLE recipients ( id INTEGER PRIMARY KEY, email_id integer NOT NULL, env_to varchar NOT NULL );
Each delivery will insert one row to the emails table and one row per recipient to the recipients table.
Delivery to this transport should never fail.
Ricardo Signes <rjbs@cpan.org>
This software is copyright (c) 2013 by Ricardo Signes.
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 Email::Sender::Transport::SQLite, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Email::Sender::Transport::SQLite
CPAN shell
perl -MCPAN -e shell install Email::Sender::Transport::SQLite
For more information on module installation, please visit the detailed CPAN module installation guide.