File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes Mail and Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "Mail and Servlet" Watch "Mail and Servlet" New topic
Author

Mail and Servlet

Alen Mester
Greenhorn

Joined: Jul 08, 2011
Posts: 21
Good Day!!

After finally found the answer of my last topic "Pizzas and Servlets" I move on and more time I have problems

the problem: I dont know how to complete(build) this Java Mail Servlet to send this paramaters to an email.


What I have :

I have a JQuery Dialog (the JSP page)with 7 parameters (name,description,price,from,subject,msg,to)

I created the bean of this parameters.

this is the java class of the Mail





This the incomplete servlet



Next.. what I have to do??


Edit : the message like this to send all parameters?


thanks
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 16483
    
    2

Write some code which sends the message.
Haina Minawa
Ranch Hand

Joined: Oct 13, 2011
Posts: 119
Remove the commented line in the Servlet's doPost method:


 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Mail and Servlet
 
Similar Threads
attachment with message....
JavaMail API error
Sending mail thru JAVA
Attachment in email not working in server
Sending file as an attachment