Mail::DWIM

Mail::DWIM is a Do-What-I-Mean Mailer.
Download

Mail::DWIM Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Mike Schilli
  • Publisher web site:
  • http://search.cpan.org/~mschilli/X10-Home-0.03/Home.pm

Mail::DWIM Tags


Mail::DWIM Description

Mail::DWIM is a Do-What-I-Mean Mailer. Mail::DWIM is a Do-What-I-Mean Mailer.SYNOPSIS use Mail::DWIM qw(mail); mail( to => 'foo@bar.com' subject => 'test message', text => 'test message text' );Mail::DWIM makes it easy to send email. You just name the recipient, the subject line and the mail text and Mail::DWIM does the rest.This module isn't for processing massive amounts of email. It is for sending casual emails without worrying about technical details.Mail::DWIM lets you store commonly used settings (like the default sender email address or the transport mechanism) in a local configuration file, so that you don't have to repeat settings in your program code every time you want to send out an email. You are certainly free to override the default settings if required.Mail::DWIM uses defaults wherever possible. So if you say use Mail::DWIM qw(mail); mail( to => 'foo@bar.com' subject => 'test message', text => 'test message text', );that's enough for the mailer to send out an email to the specified address. There's no from field, so Mail::DWIM uses 'user@domain.com' where user is the current Unix user and domain.com is the domain set in the Perl configuration (Config.pm). If you want to specify a different 'From:' field, go ahead: mail( from => 'me@mydomain.com', to => 'foo@bar.com' subject => 'test message', text => 'test message text', );By default, Mail::DWIM connects to a running sendmail daemon to deliver the mail. But you can also specify an SMTP server: mail( to => 'foo@bar.com' subject => 'test message', text => 'test message text', transport => 'smtp', smtp_server => 'smtp.foobar.com', );On a given system, these settings need to be specified only once and put into a configuration file. All Mail::DWIM instances running on this system will pick them up as default settings. Requirements: · Perl


Mail::DWIM Related Software