I have tried this code: ----------------------------------------- #!/usr/bin/perl print "What's your name?"; $naampje = <STDIN>; chomp($naampje); ... open (MAIL,"|Peter.van_Hoecke\@ecom.be"); print MAIL "$naampje"; ... close (MAIL); ----------------------------------------- Everywhere I look on the internet they tell me that this is the code onme has to use to send e-mail form Perl. However...

I get this error message:

Peter.van_Hoecke@ecom.be: not found

I get this message halfway through the program, and I don't know how to solve this. I am connected to a LAN network, and as you might have noticed the mail is adressed to myself.

You can use the Net::Smtp module or the Mail::Sender module to accomplish your needs.

I think the Sender module is easier to use. The Sender module was created by Jenda. you can d/l the module here.(if you dont already have the module on yout system) This module works for unix and win32 platforms http://cpan.valueclick.com/authors/id/J/JE/JENDA/