I needed to send mail from a servlet and used sun.net.smtp.SttpClient class. It works great. A full example
is in jason hunter's excellent book. If you want the source code just give us  a shout.

gerardo

RVASUDEV wrote:

 

Try "telnet hostname 25"
to connect to the SMTP server and then
enter the SMTP commands / data by hand.
Check if the mail is sent. This will help
identify if the problem is with the server
(in case you haven't checked already) or
with your program.

I think the sun.net.* classes have some support
for SMTP.

Vasudev

    -----Original Message-----
    From:   Shandir Ilis Thane Maeir [SMTP:[EMAIL PROTECTED]]
    Sent:   Tuesday, September 21, 1999 2:20 PM
    To:     [EMAIL PROTECTED]
    Subject:        Re: Mail from Servlet

    Baris EFE wrote:

    > Hi i want to send mail from servlet.
    > I try to open a socket to SMTP server and write data according to SMTP
    > protocol.
    > I don't get IOException for socket but it doesn't work.
    > Do u know source for sending mail?

    >
    > Do u have solution for that problem?

    Yes, use Javamail :)

    >
    > Thanks!!
    >

    Regards
    Pawel

    ___________________________________________________________________________
    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

begin:vcard
n:Macari;Gerardo
tel;work:Corel Europa House Hartcourt st, Dublin (Ireland)
x-mozilla-html:FALSE
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Gerardo Macari
end:vcard

Reply via email to