File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Customer Requirements for Developers
this week in the
Can we send Mail as response to a request?
Joined: Aug 01, 2007
Oct 07, 2008 01:18:00
can we send response to a particular mail id for a specific request?
if yes somebody please tell me how to do this
Joined: Aug 15, 2004
Oct 07, 2008 01:38:00
Yes, why not. But don't forget it is good to respond the requesting user, at least a 200 message as a response.
It should go like
1. receive request
2. manipulate it
3. create email message
4. send the email
5. fabricate the response
6. send the response to the original sender of the request
Hope you got it.
Joined: Mar 22, 2005
Oct 07, 2008 02:32:00
Just to make it perfectly clear, the mail would be
response to the HTTP request, it would not be
response (which must be HTTP, obviously).
You'd need a mail server (or at least an SMTP server), and then you can use the JavaMail API to send mails. The
page contains many useful links regarding JavaMail, including extensive tutorials and sample code.
It is sorta covered in the
JavaRanch Style Guide
subject: Can we send Mail as response to a request?
about sending request
UrlConnections versus HttpURLConnection versus Apaches HttpClient
Is SCBCD has expire date.
Sending response to client with out receving request
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015