Forums Register Login

send a mail through servlet

+Pie Number of slices to send: Send
how to send a mail through servlet and to have conditions to set the message
+Pie Number of slices to send: Send
Does your servlet run in a J2EE environment? Then you can just use the classes from the javax.mail package.
+Pie Number of slices to send: Send
 

Koen Aerts wrote:Does your servlet run in a J2EE environment? Then you can just use the classes from the javax.mail package.



J2EE is not necessary to use the mail package. Just be sure to include the needed jars.
+Pie Number of slices to send: Send
 

Bear Bibeault wrote:J2EE is not necessary to use the mail package.


That's right and I didn't say that. The thought I had attempted to bring across was that if you're using J2EE, it should already have the mail packages included and you can just use them. Yes, if you just have the Java SE then you need to add the mail packages from one or more jar files, which I believe may be called mail.jar and activation.jar.
Weeds: because mother nature refuses to be your personal bitch. But this tiny ad is willing:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 749 times.
Similar Threads
Sending E-Mail through an Applet
sending message from an webpage to an email addres
smtp
how to send email through servlet using java mail API
how to send email from servlet program
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 03:13:41.