title: smtp send mail with QTcpSocket
body: <p>I have created a mail service GUI with qt using <code>QsslSocket</code> and i will send mail using gmail account "smtp.gmail.com", 465 and i wanted it to port to <code>QTCPsocket</code> and sent mail with attachment. 
  TCP socket is connecting .. but it is not emitting <code>readyRead()</code> signal.</p>
  
  <p>is the problem with my code or gmail server wont support tcp connect ..? because for <code>QSSLSocket</code> it is working fine for me .</p>
  
  <p>My code </p>
  
  <pre><code>socket = new QTcpSocket( this );
  
  connect( socket, SIGNAL( readyRead() ), this, SLOT( readyRead() ) );
  connect( socket, SIGNAL( connected() ), this, SLOT( connected() ) );
  connect(socket, SIGNAL(error(QTcpSocket::SocketError)), this,SLOT(errorReceived(QTcpSocket::SocketError)));
  connect(socket, SIGNAL(stateChanged(QTcpSocket::SocketState)), this, SLOT(stateChanged(QTcpSocket::SocketState)));
  connect(socket, SIGNAL(disconnectedFromHost()), this,
          SLOT(disconnected()));;
  
  message = "To: " + to + "\n";
  message.append("From: " + from + "\n");
  message.append("Subject: " + subject + "\n");
  message.append(body);
  message.replace( QString::fromLatin1( "\n" ), QString::fromLatin1( "\r\n" ) );
  message.replace( QString::fromLatin1( "\r\n.\r\n" ),
                   QString::fromLatin1( "\r\n..\r\n" ) );
  this-&gt;from = from;
  rcpt = to;
  state = Init;
  socket-&gt;connectToHost( "smtp.gmail.com", 465);
  if(socket-&gt;waitForConnected ( 30000 )) {qDebug("connected"); }
  
  t = new QTextStream( socket );
  </code></pre>