./a.out smtp.gmail.com 25 Please enter the message: 220 mx.google.com ESMTP 34sm776965yxf.47 HELO 250 mx.google.com at your service MAIL FROM:<darshan.ghumare@xxxxxxxxx> 530 5.7.0 Must issue a STARTTLS command first. 34sm776965yxf.47 This is simple c program which try to connect to given ip@port. Thank you very much. -- This message was sent on behalf of darshan.ghumare@xxxxxxxxx at openSubscriber.com http://www.opensubscriber.com/messages/linux-c-programming@xxxxxxxxxxxxxxx/topic.html -- To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html