CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
SMTP via socket functions

 



yapp
User

Nov 24, 2001, 8:31 AM

Post #1 of 5 (2907 views)
SMTP via socket functions Can't Post

Hello there.

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
http://www.cool-programming.f2s.com


MouldyGoat
stranger

Feb 11, 2002, 2:19 PM

Post #2 of 5 (2889 views)
Re: [yapp] SMTP via socket functions [In reply to] Can't Post

You might want to try taking a look at this introductory tutorial, I think it covers timeouts like you asked.


paulj
New User

Feb 11, 2002, 9:20 PM

Post #3 of 5 (2883 views)
Re: [MouldyGoat] SMTP via socket functions [In reply to] Can't Post

You should look at using non-blocking sockets and IO::Select.


mire
Novice

Mar 1, 2002, 8:25 PM

Post #4 of 5 (2862 views)
Re: [paulj] SMTP via socket functions [In reply to] Can't Post

You should look at NET::SMTP source Sly


_______________________________________________

Best regards,

Miroslav Madzarevic, Senior Perl Programmer
perl@modperldev.com
Mod Perl Development  - http://www.modperldev.com
Telephone: +381 64 1193 501
ICQ: 15880893
jamph


freddo
User

Mar 2, 2002, 4:48 AM

Post #5 of 5 (2856 views)
Re: [yapp] SMTP via socket functions [In reply to] Can't Post

Hi Yapp,

You may want to have a look t this old post i had with pro4.

If you have any question, just fire Wink

Freddo
;---

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives