File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes How can I receive failure notice using Java? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "How can I receive failure notice using Java?" Watch "How can I receive failure notice using Java?" New topic
Author

How can I receive failure notice using Java?

Mylsamy Shanmugam
Greenhorn

Joined: Jun 04, 2008
Posts: 8
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


This message was edited 2 times. Last update was at by Mylsamy Shanmugam

Mylsamy Shanmugam
Greenhorn

Joined: Jun 04, 2008
Posts: 8
Any one can help me..

It's very urgent one konw..

Thank you
Rob Spoor
Saloon Keeper

Joined: Oct 27, 2005
Posts: 17259

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.


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
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

Joined: Jun 04, 2008
Posts: 8
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

This message was edited 2 times. Last update was at by Rob Prime

Rob Spoor
Saloon Keeper

Joined: Oct 27, 2005
Posts: 17259

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

Joined: Jun 04, 2008
Posts: 8
Sorry for doing like this.

I will correct this next time
 
 
subject: How can I receive failure notice using Java?
 
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture