ERROR while communicating with gmail


 
Thread Tools Search this Thread
Top Forums Programming ERROR while communicating with gmail
# 1  
Old 11-03-2009
ERROR while communicating with gmail

Code:
$./a.out smtp.gmail.com 25
220 mx.google.com ESMTP 9sm2923369yxf.23

250 mx.google.com at your service

220 2.0.0 Ready to start TLS

after handshake
Common Name: smtp.gmail.com
after get cert dn
-----BEGIN SSL SESSION PARAMETERS-----
d4f65cac7d180d5b17d3f6334cf60bcaee84cea782dc39be68e9224d06ec9b86
-----END SSL SESSION PARAMETERS-----
CIPHER is RC4-MD5

EHLO
250-mx.google.com at your service, [61.11.23.15]
250-SIZE 35651584
250-8BITMIME
250-AUTH LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250 PIPELINING
MAIL FROM:<root@stripe>
502 5.5.1 Unrecognized command. 9sm2923369yxf.23

Above program just connect to smtp.gmail.com@25 and send
1) HELO
2) STARTTLS
..
After succ handshake we need to send EHELO again. I have sent EHELO but after that when I sent MAIL FROM it give me unrecognized command why?

Last edited by darshan.ghumare; 11-03-2009 at 06:31 AM.. Reason: code tags, please...
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Communicating with ethernet to serial LED sign - is this feasible?

I have a london-electronics LED sign I picked up on eBay which I would like to display custom messages on programmatically. It is working ok. Opening it up, it has an ethernet to serial connection currently plugged in and a serial connection currently unplugged internally (same connectors).... (9 Replies)
Discussion started by: windswept321
9 Replies

2. Programming

Child threads communicating with main thread via pipes

I have a simple client/server program I am using for learning purposes. I have it setup so that after server is setup and listening it than goes into a loop where it accepts incoming client connections. After each connection, the client socket is than passed to a thread routine where it can be... (3 Replies)
Discussion started by: Majortom71
3 Replies

3. UNIX and Linux Applications

Mutt for yahoo and Gmail?

Hi Installed MUTT and configured it for Gmail and got successful and then tried to configure for Yahoo but i am not getting any success in doing that. Can anybody advice what preferences are to be set in .muttrc file for configuring yahoo and moreover How to configure multiple Gmail clients in... (1 Reply)
Discussion started by: nixhead
1 Replies

4. AIX

how to know my serial port is communicating and running fine

i want to know that my serial port ( pci slot with 2 port ) is working fine and communicating is there any way to know the serialport is working and communicating? please help (3 Replies)
Discussion started by: pchangba
3 Replies

5. What is on Your Mind?

Gmail down?

Anyone else having problems in the last 20 minutes or so with Gmail? (6 Replies)
Discussion started by: otheus
6 Replies

6. UNIX for Dummies Questions & Answers

Communicating Via Terminals With Other Computers

Hello, I would like to know if it is possible to communicate between two terminals on seperate computers for free - e.g. not using proprietary software or using the built in UNIX terminals on operating systems of the UNIX flavor. Thanks, photray94 (2 Replies)
Discussion started by: photray94
2 Replies

7. UNIX for Advanced & Expert Users

Communicating with Serial Port

I am using system running on red hat linux 4. I had connected health measuring machine to the serial port and configured it stty -F /dev/ttyS0 9600 -parenb cs8 -cstopb this machine requires a command to be passed to it for giving output. I am unable to pass command hexa format(0x68) to the... (4 Replies)
Discussion started by: netsavant
4 Replies

8. UNIX for Advanced & Expert Users

How to use 2 Proccess communicating with each other using 2 pipe

Hi, Guys ... I want to know how to use to 2 processes (A & B) communicating with each others through 2 pipes (Pipe1 & Pinpe2) : such that process A write to Pipe1 and Process B read from Pipe1 and process B write to Pipe2 and Process A read from Pipe2 . Does anyone have an idea about... (1 Reply)
Discussion started by: someone33
1 Replies
Login or Register to Ask a Question