|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello,
I am converting my UNIX-based Perl scripts to Windows-compatible ones that are to work in my Windows XP box. I have Apache 1.3, and ActivePerl installed in my XP box, and I am having problems sending emails from my test scripts. I have also installed Advanced SMTP server (from http://www.softstack.com), and it seems to work fine (I can send emails from Outlook Express through this program without going to the ISP's mail server). However, when I test the sending email script in the following Perl script. It hangs. Here's the part of the script that is supposed to send an email. #!E:\Perl\bin\perl.exe use NTsendmail; $ENV{"NTsendmail"} = "localhost"; $ENV{"NTsendmail_debug"}=1; my $mail = new NTsendmail; my $from = "me\@someone.com"; my $to = "me\@someone.com"; my $subject = "Message from NTsendmail"; my $message = "Email Testing"; $mail->send($from, $to, $subject, $message); exit 0; As you can notice, I am using NTsendmail module (from www.ntsendmail.com) and I am following their instructions exactly, or at least I think so I get a couple errors generated by NTsendmail.pm if I put a couple intentional errors, so it's not the NTSendmail module that is causing the problem. Can anybody help me with this thing? or offer some insights? I would greatly appreciate any of you guys input ! |
|
#2
|
|||
|
|||
|
Why don't you use something like Net::SMTP, MIME::Lite or Mail::Sender?
These all are portable, tested, documented and widely used. Jenda |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > Need Help with NTSendMail |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|