in reply to Re: Email Modules
in thread Email Modules
I strongly disagree with this - This approach is by far not portable as it depends on a number of factors:
Furthermore, as for the ease of using this approach without installing modules, the Net::SMTP module is included as part of the core Perl installation and as such should be available on all installations. Additionally the use of this module is very straight-forward, for example,
my $smtp = Net::SMTP->new('mail.mydomain.com'); $smtp->mail($fromaddr); $smtp->to($to); $smtp->data(); $smtp->data("Subject: $subject\n\n"); $smtp->data($message); $smtp->dataend(); $smtp->quit;
Furthermore, the use of the local network SMTP server will make your network administrator happier as it is at this point that network mail policies and statistics reporting is often based.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Email Modules
by kappa (Chaplain) on Jun 02, 2002 at 12:52 UTC | |
|
Re: Re: Re: Email Modules
by oakbox (Chaplain) on Jun 03, 2002 at 06:51 UTC |