perlTech has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re: Mail::Mailer on NT
by RazorbladeBidet (Friar) on Mar 08, 2005 at 16:02 UTC
    Welcome to PerlMonks, perlTech.

    Please check How do I post a question effectively? for information on effectively posting a question.

    Most of the response you receive are likely to be negative at this point. Do not let that dissuade you. Update your post with a better description, e.g., what you have tried so far

    The monks generally hesitate to "do the work for you" in order to allow you to learn for yourself.

    Update: It also looks like a dupe of sending email on NT although I believe you edited that one. It's best not to do that. You have a lot of good suggestions in that thread, and I suggest you investigate those, at least a little bit. Try them, if you continue to have problems, come back and post more.
    --------------
    It's sad that a family can be torn apart by such a such a simple thing as a pack of wild dogs
Re: Mail::Mailer on NT
by Joost (Canon) on Mar 08, 2005 at 16:04 UTC
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: Mail::Mailer on NT
by sh1tn (Priest) on Mar 08, 2005 at 16:10 UTC
    You may want to see Mail::Sender:
    # example from the module docs: use Mail::Sender; eval { (new Mail::Sender {on_errors => 'die'}) ->OpenMultipart({ smtp => 'destination.mail.server', to => 'destination_email_addr', subject => 'your subject', from => 'source_email_addr' }) ->Body({ msg => <<'*END*' }) Could anybody pleassss send ma any sample scrip using Mail::Mailer and send mail. Sending mail form on NT. Massege is coming from Html page. Its urgent plssss thanks _End_ of letter *END* ->Attach({ description => 'Perl module Mail::Sender.pm', ctype => 'application/x-zip-encoded', encoding => 'Base64', disposition => 'attachment; filename="Sender.zip"; type="ZI +P archive"', file => 'c:\boot.ini' }) ->Close(); } or print "Error sending mail: $@\n";


    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: Mail::Mailer on NT
by Errto (Vicar) on Mar 09, 2005 at 01:53 UTC

    Do you actually have sendmail installed on your server? I would imagine sendmail could be compiled on NT, but I've never heard of it actually being used there. I could be wrong, but if so it can't be very common. You might want to use SMTP instead. In that case you need to know the SMTP server address, which might or might not be localhost. Other posts show how to use Mail::Mailer with SMTP.

    If you are running IIS with the Microsoft SMTP Service locally, and want to use it directly for some reason, something like the following code ought to work (untested since my win32 box is not here) update: switched to newer CDO version:

    use Win32::OLE; my $mailer = new Win32::OLE 'CDO.Message'; $mailer->{From} = 'me@example.com'; $mailer->{To} = 'you@example.com'; $mailer->{Subject} = 'subject here'; $mailer->{BodyText} = 'body here'; $mailer->Send();