Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Net::SMTP Can't connect to server

Status
Not open for further replies.

mmiller81

Programmer
Joined
Jan 28, 2005
Messages
3
Location
US
Hi,

I recently just moved all my perl scripts to a new server and the Net::SMTP email is no longer working.

The following code returns no value.

use Net::SMTP;
$smtp = Net::SMTP->new(localhost:25);

I set up the new local SMTP server in IIS just as I did on the old server. If anyone has ever run into this problem or has a solution please respond to this. If you need more information I can give it to you.
 
What do you expect to see with these two lines?
First of all is the Net::SMTP module installed on the new server?
if you script is not very long post it here. But before you do that, try
use strict;
use warnings;
use diagnosticts;
so you take a little more verbose output that might help you debug your script yourself.


``The wise man doesn't give the right answers,
he poses the right questions.''
TIMTOWTDI
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top