Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 22nd, 2004, 02:09 AM
keirin79 keirin79 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 1 keirin79 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 59 sec
Reputation Power: 0
Cool Need Help with NTSendMail

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 !

Reply With Quote
  #2  
Old May 5th, 2004, 12:00 PM
JendaPerl JendaPerl is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 1 JendaPerl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Exclamation Use something portable

Why don't you use something like Net::SMTP, MIME::Lite or Mail::Sender?
These all are portable, tested, documented and widely used.

Jenda

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > Need Help with NTSendMail


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT