Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

SMTP protocol : please help !

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there
I wrote a simple little java program that sends email to a smtp server running on my localhost. It works, ie when I check the account I have emailed to the test email is sitting there. The following is a debug output of the SMTP conversation :
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth false
DEBUG: SMTPTransport trying to connect to host "localhost", port 25
DEBUG SMTP RCVD: 220 test.com SurgeSMTP (Version 1.6e2) http://surgemail.com
DEBUG: SMTPTransport connected to host "localhost", port: 25
DEBUG SMTP SENT: EHLO NLYEHVSCE1WS750
DEBUG SMTP RCVD: 250-test.com. Hello NLYEHVSCE1WS750 (127.0.0.1)
250-AUTH PLAIN LOGIN
250-DSN
250-ETRN
250-X-ID 4e4c5945485653434531575337353031303735323134373534
250-SIZE 20971520
250 HELP
DEBUG SMTP SENT: MAIL FROM:<sender@here.com>
DEBUG SMTP RCVD: 250 Command MAIL OK
DEBUG SMTP SENT: RCPT TO:<jacquesb@test.com>
DEBUG SMTP RCVD: 250 local recipient ok
Verified Addresses
jacquesb@test.com
DEBUG SMTP SENT: DATA
DEBUG SMTP RCVD: 354 Command DATA Start mail input; end with <CRLF>.<CRLF>
DEBUG SMTP SENT:
.
DEBUG SMTP RCVD: 250 message sent ok
DEBUG SMTP SENT: QUIT
When I try and do something similar using a feature in the application server I am using (ATG Dynamo) the email is apparently sent, but nothing arrives in the inbox of the account. I have also obtained the debug output for this SMTP conversation, and it is different than the above (esp. the last part). I have listed it below. Can anybody tell me what the reason for this difference is ? I particularly don't understand why the NOOP's appear...
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
/atg/dynamo/service/SMTPEmail Attempting to open a connection...
DEBUG SMTP: useEhlo true, useAuth false
DEBUG: SMTPTransport trying to connect to host "localhost", port 25
DEBUG SMTP RCVD: 220 test.com SurgeSMTP (Version 1.6e2) http://surgemail.com
DEBUG: SMTPTransport connected to host "localhost", port: 25
DEBUG SMTP SENT: EHLO NLYEHVSCE1WS750
DEBUG SMTP RCVD: 250-test.com. Hello NLYEHVSCE1WS750 (127.0.0.1)
250-AUTH PLAIN LOGIN
250-DSN
250-ETRN
250-X-ID 4e4c5945485653434531575337353031303735323134373534
250-SIZE 20971520
250 HELP
DEBUG SMTP SENT: NOOP
DEBUG SMTP RCVD: 250 Command NOOP OK
DEBUG SMTP SENT: NOOP
DEBUG SMTP RCVD: 250 Command NOOP OK
DEBUG SMTP SENT: NOOP
DEBUG SMTP RCVD: 250 Command NOOP OK
DEBUG SMTP SENT: QUIT
 
reply
    Bookmark Topic Watch Topic
  • New Topic