Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

cwest (1514)

cwest
  (email not shown publicly)
http://caseywest.com/
AOL IM: caseyrwest (Add Buddy, Send Message)

Perl geek.

Journal of cwest (1514)

Wednesday April 20, 2005
11:57 AM

Email::Send Sucks Right Now

[ #24299 ]

So. Email::Send has a really nice interface. It flows really well. But it doesn't work very well. Perl has this handy send() function, a built-in function, and sometimes it conflicts with Email::Send.

I used to subscribe to the philosophy that actions should be functions. It seems like that may be the wrong approach. No matter how hard you try, you're always trying harder to get reusable code out of function interfaces.

It's time to rework Email::Send.

Here are some thoughts.

use Email::Send;
my $sender = Email::Send->new(SMTP => 'localhost');
$sender->send($message);

Or perhaps just this.

use Email::Send;
Email::Send->send(SMTP => $message, 'localhost');

Any other ideas welcome.

Posted from caseywest.com, comment here.

New comment creation has been disabled on this discussion.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login
Loading... please wait.