posted 19 years ago
Don�t try to fire email as soon as user submits the page.
The ideal way is, first insert mail details in database, have one mail daemon that periodically query the database and send mail as per the data exist in database and also log the success or failure status in the database.
The advantage of this way is that, if by any reasons there is problem in email sending routine, you can send emails later on after solving the problem as you already have failed email details in database.
My blood is tested +ve for Java.