From: Julian Leviston Date: 2009-04-01T22:21:53+09:00 Subject: Re: how to do coding to check mail delivered or not No he means how do you tell what the SMTP server has responded with, and how can you tell whether it has been rejected for some reason or other :) Blog: http://random8.zenunit.com/ Learn rails: http://sensei.zenunit.com/ On 02/04/2009, at 12:09 AM, Phlip wrote: > Anshali Dhande wrote: >> Hi All, >> Plz tell me how this problem will solved. >> "when mail is send,how we are going to check that mail is delivered >> or >> not" > > At test time? > > Either set up a lite mail SMTP client, send it your mail, and have > your test code use POP3 to fetch it... > > or use a mock object and manually test that it's mocking the right > thing. > > Under Rails, for example, the mock is built-in... >