A quick hack is to create shell script that will use sendmail (or qmail or whatever) to send a message. Then, you shell out with exec from Java or something to run it. You can get tricky by writing out a file to use as the body or attachments. It isn't the nicest way to do it, by far. But, it's easy. And if you don't need it to be too fancy, you'll have it done in quick order. If you find a nice way of doing it, and the time, I don't suggest using this method. This method is only good if you need a quick solution. - gene ----- Original Message ----- From: "Frank LaLone" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 09, 2001 10:13 PM Subject: Mail? > Is there a way to send mail from a servlet? I have switched from PHP > and Perl which allow this, and I need an E-Mail from my servlets to go > to my costumers ordering and my order department. My book I purchased > to learn Servlets does not mention anything of this capability. > > Can anyone help me with this? > > Thank you Frank LaLone > > ___________________________________________________________________________ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
