Hi Rashid,
You can send mail from servlet eihter using Java Mail API or using sun supplied
SmtpClient class.
Or u can write ur own class which directly connects to the SMTP(port no.25)
port of the
mail server and then converses in SMTP protocol. However for sending simple
text mail with
no attachment it is easy to use sun.net.smtp package bundled with standard JDK.
The class u have
to make use of is SmtpClient.
Regards,
LakshmiNarayana M
Rashid Amin wrote:
> Hi dear all,
> How can I send mail from servlets. Please help me.
> Rashid.
>
> ___________________________________________________________________________
> 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