Skip to content

Getting error `waitfor': timed out while waiting for more data (Net::ReadTimeout) #2

Description

@shashi-we

I have simple script to send emails using ruby telnet library
here is my code

require 'net/telnet'

localhost = Net::Telnet::new("Host" => "smtp.gmail.com","Timeout" => 10, "Port" => 587, "Waittime" => 20, "
FailEOF" => true )
localhost.cmd("mail from: oneperson@gmail.com"){ |c| print c }
localhost.cmd("rcpt to: oneperson@gmail.com"){ |c| print c }
localhost.close

I got this error 'waitfor' timed out while waiting for more data again and again
why I am getting this error again and again, what's wrong in the code snipet?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions