> -----Original Message-----
> From: Michael Kelly [mailto:[EMAIL PROTECTED]]
> 
> <code>
> #!/usr/bin/perl
> 
> use Net::SMTP;
> 
> $server     = 'your-smtp-server';
> $to         = '[EMAIL PROTECTED]';
> $from_name  = 'You';
> $from_email = '[EMAIL PROTECTED]';
> $subject    = 'hello, email';
> 
> $smtp = Net::SMTP->new($server);
> $smtp->mail($from_email);


I have tried the above code and got no joy whatsoever. I am getting the
error 


Can't call method "mail" on an undefined value at H:\Perl\testing\mail.pl
line 13.


I have had a hunt around google and had little success. I have tried the
fully qualified domain name of our _exchange_ server and the IP address.
Could it be because exchange uses some weird protocol or is it permissions.
The hints I found on google point to the server not responding or cannot be
contacted. Has anyone got this working with exchange.

Harry


*************************************************************************************
COLT Telecommunications
Registered in England No. 2452736
Registered Office: Bishopsgate Court, 4 Norton Folgate, London E1 6DQ
Tel. +44 20 7390 3900

This message is subject to and does not create or vary any contractual
relationship between COLT Telecommunications, its subsidiaries or 
affiliates ("COLT") and you. Internet communications are not secure
and therefore COLT does not accept legal responsibility for the
contents of this message.  Any view or opinions expressed are those of
the author. The message is intended for the addressee only and its
contents and any attached files are strictly confidential. If you have
received it in error, please telephone the number above. Thank you.
*************************************************************************************


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to