Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SMTP protocol : please help !

 
Jacques Botha
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic