com.sun.mail - where to download?

I

Ido.Yehieli

hi i need to use com.sun.mail.smtp.SMTPMessage, but did not find an
easy location for downloading the package com.sun.mail.smtp.
anyone know where to find it?

a google search for "com.sun.mail.smtp download" gives only
domcumetation and the likes it seems
 
J

jan V

hi i need to use com.sun.mail.smtp.SMTPMessage, but did not find an
easy location for downloading the package com.sun.mail.smtp.
anyone know where to find it?

a google search for "com.sun.mail.smtp download" gives only
domcumetation and the likes it seems

Types in the com.sun.* hierarchy are not for public consumption. Even if you
can get your hands on the code, you're probably not legally entitled to use
it. Assuming you're not a programmer selling your soul to a spam outfit, why
don't you investigate the Apache codebase for something similar, but
publicly usable?
 
I

Ido.Yehieli

thanks for the answer,
maybe this problem can be solved from another direction:
I have been trying to set the return path of a message like this:

message.setHeader("Return-path", Setting.get("some@path"));

but it seems that when i get the mails sent like that the Return-path
is taken from somewhere else (like the from line)
 
I

Ido.Yehieli

Setting.get("some@path") offcourse gives the right string (which is not
the same as what i get in the email)
 
R

Roedy Green

message.setHeader("Return-path", Setting.get("some@path"));

what happens if you use setReplyTo(Address[] addresses). Does that set
Return-path as well?
 
R

Roedy Green

what happens if you use setReplyTo(Address[] addresses). Does that set
Return-path as well?

In other words, if you want them different, try doing the setHeader as
the last thing.
 
I

Ido.Yehieli

In other words, if you want them different, try doing the setHeader as
I tryed that, but it didn't help... they are still the same (bot are
like the reply-to).
they must be different
 
R

Roedy Green

I tryed that, but it didn't help... they are still the same (bot are
like the reply-to).
they must be different

Unfortunately we don't have the JavaMail source to help plan another
attack.

If you turn debug on, you can see that SMTP in mindlessly simple
protocol. Perhaps what you will have to do is roll our own with
sockets.
 
R

Raymond DeCampo

Roedy said:
Unfortunately we don't have the JavaMail source to help plan another
attack.

If you turn debug on, you can see that SMTP in mindlessly simple
protocol. Perhaps what you will have to do is roll our own with
sockets.

While Roedy's advice may be correct, may I suggest that you also file a
bug with Sun for the dual purpose of:

1) discovering potential work-arounds
2) helping the next poor guy not have to roll his own.

HTH,
Ray
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,434
Messages
2,571,688
Members
48,796
Latest member
Greg L.

Latest Threads

Top