"Ramesh, Kesav" wrote:
>
> Hi all,
>
>  i am able to send emails within my organization using the smtp server of my
> company but i am unable to send it to other domains like hotmail/rediff
> etc.,
>
>  With my outlook i am able to do that but why can't i using javamail.
>
>  can any body let me know the reason for this since i am struck with my
> project.

If you are connecting to your company's SMTP server and trying to send to
someone outside the company, the server must be rejecting your "SMTP relay"
requests. This is probably because you have not authenticated yourself to the
server. If you are trying to connect directly to the recipient's SMTP server the
problem is either that the target server has anti-spamming measures in place or
that you have got a bug in your code and you are not finding the server.

Using the company SMTP server is the right approach.

BTW please try to restrict your questions on this list to EJB matters in the
future.


Ian McCallion
Alexis Systems Limited
Romsey, UK

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to