• Post Reply Bookmark Topic Watch Topic
  • New Topic

How can I receive failure notice using Java?  RSS feed

 
Mylsamy Shanmugam
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am using JAVAMailAPI for sending emails.

And I set the Message.setEnvelopeFrom(ReceiveMailId); to receive the failure notice,

and my problem is if the mail host and ReceiveMailId domain, it sent the failure notice,

but both are different , it did not sent the failure notification email.

How can i set this?

Please help me..

Thanks in Advance..

Myl


 
Mylsamy Shanmugam
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any one can help me..

It's very urgent one konw..

Thank you
 
Rob Spoor
Sheriff
Posts: 21048
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mylsamy Shanmugam wrote:Any one can help me..

It's very urgent one konw..

Thank you

PatienceIsAVirtue
EaseUp

Anyway, you will need to read the inbox of the address where the notifications would be sent to.

I'll move this to our Other JSE/JEE APIs forum, since that's where we handle JavaMail.
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One option would be to use Aspirin to send mails - it lets you implement a listener interface that will be notified about each message sent successfully or unsuccessfully.
 
Mylsamy Shanmugam
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply,

I think you can not understand my problem..

I posted my Code and explain my problem

My Code is :

And my problem is the mail host (Yahoo) and my received mail id ( If the email is sending failed which is get the failure notice, abc@yahoo.com) , both domains are same. In this situation the failure notice email is sent to the received mail id.

Suppose the received email Id is like Gmail or any other domain means, the mail server does not send the failure notice.

Is there any method to solve this? Or sample code is available means please forward the examples.

It is very urgent.

Please help me out of this Problem..

Thanks

myl
 
Rob Spoor
Sheriff
Posts: 21048
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please UseCodeTags. I've added them for you this time (and removed some whitespace to make the code less wide); see how much better it looks?

Mylsamy Shanmugam wrote:It is very urgent.

You obviously haven't read my request to EaseUp...
 
Mylsamy Shanmugam
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for doing like this.

I will correct this next time
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!