Nov 24, 2001, 8:31 AM
Post #1 of 5
SMTP via socket functions
I am trying to make a perl program that doesn't need Net::SMTP or sendmail to send the e-mails. Later, it should get a more general purpose.
I have been expirimenting with sockets (socket handles). That worked very well. However, there are two things I can't solve
- The connection never times out.!
- If I read one line from the socket using $line = <SOCKET> the program keeps waiting until that line arrives. Unfortunately, the line is never send.
- How can I find out there is still a line waiting at the socket??
How can I solve that??
Yet an Other Perl Programmer
Find out more about programming