> http://search.cpan.org/doc/JENDA/Mail-Sender-0.7.10/Sender.pm.html
>
> and sending mail took a bit of code like this:

Implied... use Mail::Sender;

> ref ($sender = new Mail::Sender({from => '[EMAIL PROTECTED]', smtp
> => 'company.com'})) or die "$Mail::Sender::Error\n";
>
> (ref ($sender->MailMsg(
>     { to      => $Email,
>       cc      => '[EMAIL PROTECTED]',
>       subject => 'Subject Text Here',
>       msg     => $Message
>     }))
>     and print "Mail sent OK."
> )
> or die "$Mail::Sender::Error\n";
>
> # (where $Email was pre-set from a web-form submission and $message was
> a pre-set message in the variable)
>
> ***********

Well I'm just wondering if there is much difference between Sender and
Sendmail:

use Mail::Sendmail;

$from = "[EMAIL PROTECTED]";
$to   = $from;

my %mail = (
        Smtp    => 'mail.eskimo.com',
        From    => $from,
        To      => $to,
        Subject => 'Test',
        Message => 'Testing'
);

if (sendmail %mail) {
        print "Mail sent OK.\n";
} else {
        print "$Mail::Sendmail::error <br>\n";
}

Hey!  Where's my 'new' doodad?  Just noticed that.  And yet it works.  Maybe
the 'my %mail' accomplishes the same thing?

/g




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to