Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

sned mail problem

807603Oct 22 2007
i written simple code to send mail .. when i run it sometime it send me mail but in most cases i am not able to get email
my debug info
say following
Sending mail to amit@quagnito.com

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 "mail.quagnito.com", port 25

DEBUG SMTP RCVD: 220 mail27.opentransfer.com ESMTP

DEBUG: SMTPTransport connected to host "mail.quagnito.com", port: 25

DEBUG SMTP SENT: EHLO Quag034
DEBUG SMTP RCVD: 250-mail27.opentransfer.com
250-PIPELINING
250-8BITMIME
250 SIZE 1048576000

DEBUG SMTP SENT: MAIL FROM:<amit@quanito.com>
DEBUG SMTP RCVD: 250 ok

DEBUG SMTP SENT: RCPT TO:<amit@quagnito.com>
DEBUG SMTP RCVD: 250 ok

Verified Addresses
amit@quagnito.com
DEBUG SMTP SENT: DATA
DEBUG SMTP RCVD: 354 Please start mail input.

DEBUG SMTP SENT:
.
DEBUG SMTP RCVD: 250 Mail queued for delivery.

DEBUG SMTP SENT: QUIT


please suggest solution and meaning of this line DEBUG SMTP RCVD: 250 Mail queued for delivery.

Comments

843830
Because you're rolling back and using your JMS Provider to move the message to a poison queue on the 3rd attempt I don't think you'll be able to change the message properties - the rollback will essentially undo them.

A few options spring to mind (some of which probably won't be appropriate)...

1. First thing I'd look at is whether you can monitor the poison queue - if the queue depth changes you know you need to send an email. If you need to copy details out of the message then this becomes a little more tricky as you have to browse the queue rather than consume messages from it.

2. There are commericial alerting applications which allow you to supress alerts until a threshold has been reached. They probably wouldn't work with email though (SMNP Traps is more likely).
1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Nov 19 2007
Added on Oct 22 2007
0 comments
161 views