ngibsonau has asked for the wisdom of the Perl Monks concerning the following question:
One of the most useful things to do on a real world application is to get it to send email notifications. I have had a look through the CPAN modules for email and there doesn't seem to be any one particular module that caters for all situations.
Does anybody know if there is anything like an EMailD and EMailI module. Like DBD and DBI which allow database drivers. Instead I'm thinking Email Drivers!
Why? I do low-end web development on windows and Linux systems. Windows has exchange server, CDO, CDONTS, MAPI etc, Linux has sendmail, SMTP ...
I would like to be able to use all of these without having to change more than a singe driver name.
I would like to even be able to use two different drivers concurrently on the same platform in the same program. eg. one driver could use Mail::Sendmail and another Net::SMTP
I believe this would make the code a lot more transportable and reusable.
The code to use the email modules would look something like.
use EMailI; my $driver = "emaili::DriverName"; my $rc = EMailI->send($driver, USER => "user", PASSWORD => "password", HOST => "mydomain.com", SUBJECT => "test message", MESSAGE => "this is a test")
Any pointer or suggestions?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unified Perl Email. Has it been done?
by tachyon (Chancellor) on Mar 19, 2004 at 13:47 UTC | |
|
Re: Unified Perl Email. Has it been done? (yes)
by grinder (Bishop) on Mar 19, 2004 at 13:55 UTC | |
by astroboy (Chaplain) on Mar 19, 2004 at 14:36 UTC | |
|
Re: Unified Perl Email. Has it been done?
by Abigail-II (Bishop) on Mar 19, 2004 at 13:50 UTC | |
|
Re: Unified Perl Email. Has it been done?
by dragonchild (Archbishop) on Mar 19, 2004 at 13:48 UTC | |
|
Re: Unified Perl Email. Has it been done?
by flyingmoose (Priest) on Mar 19, 2004 at 15:30 UTC | |
|
Re: Unified Perl Email. Has it been done?
by chip (Curate) on Mar 19, 2004 at 17:06 UTC |