• 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:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

How can I receive failure notice using Java?

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any one can help me..

It's very urgent one konw..

Thank you
 
Sheriff
Posts: 22815
132
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 22815
132
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry for doing like this.

I will correct this next time
 
Shiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic