I want to send e-mails to new user registered on my website. I want 100% mail delivery, i don't have control over my smtp server. Right now my program is directly sending message to smtp server but if that smtp server is down then my application wil not able to send mail. What i now want is My application will feed all mails as messages to a JMS Active mq queue then jms forward all those messages to my mail server if it is up otherwise it will store my messages until my smtp server ups.
And how we check smtp server is down so we can put mail in active mq.