JavaMail Secure SMTP

Hi All,

I would like to implement secure smtp within a javamail application.

Before I make use of the example given with the mail.jar package

download I was wondering if any of the following was possible.

1.) Could I hard code a valid username and password on the server to

connect to the secure smtp server and then send mail from multiple

users with the same domain name/different domain name through this

hard coded account. Or do you have to connect per user to the secure

smtp server to send your mails.

2.) Is it possible to maybe append/prefix a username and password with

the "to address" to the secure smtp server. Almost like they way you

can conenct to an ftp server in your browser but oviously by making

use of the Java mail API. The server is able to then login as it can

find the appended/prefixed username and passord on the "to address"

property.

3.) If you know of any other limitations regarding this subject that I

should consider know about.

Thanks for the assistance

--

Regards,

Ryan Meder

[1138 byte] By [Serialkillera] at [2007-11-26 18:08:14]
# 1

It depends.

It's up to the server to decide what the rules are.

It seems that you want to login to the server using one identity, and then send

messages that claim to be coming from some other identities. If you're using

a server that's supplied by some service (e.g., an ISP) it's unlikely to let you do

that. If it's a server that you own and control, you likely can set it up to allow that.

bshannona at 2007-7-9 5:39:51 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

Thanks for above message.

Yes, Sending mail from multiple addresses with one login and password is what i am basically trying to do.

I guess this is dependat on th ISP then. Ok well do you have any sample code to possibly help me get started with smtp. All i need is how to set username and password.

Thanks.

Serialkillera at 2007-7-9 5:39:51 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3
Did you read the FAQ?
bshannona at 2007-7-9 5:39:51 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 4
No i havn't,not sure were it is or what you are exactly refering to. Please give me a link
Serialkillera at 2007-7-9 5:39:52 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 5
Well, let's see, you could read text at the top of this forum,or you could read the sticky post that tells you where tofind the FAQ, or you could search for "JavaMail FAQ".I think pretty much anything you try will lead you to theFAQ. What did you try?
bshannona at 2007-7-9 5:39:52 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...