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
SMTP_auth(3pm)						User Contributed Perl Documentation					    SMTP_auth(3pm)

NAME
Net::SMTP_auth - Simple Mail Transfer Protocol Client with AUTHentication SYNOPSIS
use Net::SMTP_auth; # Constructors $smtp = Net::SMTP_auth->new('mailhost'); $smtp = Net::SMTP_auth->new('mailhost', Timeout => 60); DESCRIPTION
This module implements a client interface to the SMTP and ESMTP protocol AUTH service extension, enabling a perl5 application to talk to and authenticate against SMTP servers. This documentation assumes that you are familiar with the concepts of the SMTP protocol described in RFC821 and with the AUTH service extension described in RFC2554. A new Net::SMTP_auth object must be created with the new method. Once this has been done, all SMTP commands are accessed through this object. The Net::SMTP_auth class is a subclass of Net::SMTP, which itself is a subclass of Net::Cmd and IO::Socket::INET. EXAMPLES
This example authenticates via CRAM-MD5 and sends a small message to the postmaster at the SMTP server known as mailhost: #!/usr/bin/perl -w use Net::SMTP_auth; $smtp = Net::SMTP_auth->new('mailhost'); $smtp->auth('CRAM-MD5', 'user', 'password'); $smtp->mail($ENV{USER}); $smtp->to('postmaster'); $smtp->data(); $smtp->datasend("To: postmaster "); $smtp->datasend(" "); $smtp->datasend("A simple test message "); $smtp->dataend(); $smtp->quit; CONSTRUCTOR
new Net::SMTP_auth [ HOST, ] [ OPTIONS ] This is the constructor for a new Net::SMTP_auth object. It is taken from Net::SMTP as all other methods (except auth and auth_types) are, too. METHODS
Unless otherwise stated all methods return either a true or false value, with true meaning that the operation was a success. When a method states that it returns a value, failure will be returned as undef or an empty list. auth_types () Returns the AUTH methods supported by the server as an array or in a space separated string. This string is exacly the line given by the SMTP server after the "EHLO" command containing the keyword "AUTH". auth ( AUTH, USER, PASSWORD ) Authenticates the user "USER" via the authentication method "AUTH" and the password "PASSWORD". Returns true if successful and false if the authentication failed. Remember that the connection is not closed if the authentication fails. You may issue a differ- ent authentication attempt. If you once are successfully authenticated, you cannot send the "AUTH" command again. The "AUTH" method "NTLM" is supported via Authen::NTLM (thanks to James Fryman). SEE ALSO
Net::SMTP and Net::Cmd AUTHOR
Alex Pleiner <alex@zeitform.de>, zeitform Internet Dienste. Thanks to Graham Barr <gbarr@pobox.com> for Net::SMTP. NTLM authentication code provided by James Fryman <jfryman@gmail.com> COPYRIGHT
Copyright (c) 2001, 2003, 2006 zeitform Internet Dienste. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.8.8 2006-01-13 SMTP_auth(3pm)