in reply to problem with sending a file's content using Mail::Sender

You prepare the mail message, but where do you $mail->MailMsg ();?


Perl is environmentally friendly - it saves trees

Replies are listed 'Best First'.
Re^2: problem with sending a file's content using Mail::Sender
by cc (Beadle) on Nov 01, 2007 at 14:48 UTC
    thanks, was my mistake.
    I corrected the code and it works now:
    # send a mail when transfer completed my $mail = new Mail::Sender {smtp => 'localhost', from => $linux}; $mail->MailMsg({to => $recipient, subject => 'data transfer', msg => $content});
    my second problem is, how to send a mail if transfer failed .
    any idea ?