succes sending mail with yahoo stmp server =) but still more questions

why i can not instantiate an Authenticator object with new, i have to do this:Authenticator object= new Authenticator(){ code...}or create a new class extends from Authenticator, how does authenticator works or why it doesnt have methods or constructors :s...
[280 byte] By [eckoa] at [2007-10-3 3:38:58]
# 1
It's an abstract class. It provides a few convenience methodsfor you, but it doesn't really know how to do its job unless youtell it. The way you tell it is by providing implementations of themissing methods.
bshannona at 2007-7-14 21:34:18 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
ok thanks =) i would give you duke dollars but i dont have anymore :( and i dont know what are they :S see you soon
eckoa at 2007-7-14 21:34:18 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3
hallohow did you realize it?i try to send mail via hotmail or gmx server but i can'twhat should i do?
kobeyna at 2007-7-14 21:34:19 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 4
hi i know that you cant use javamail for hotmail because hotmail is http mail and javamail is for pop and smtp protocol try with yahoo mail or others mails that offer you pop3 and smtp ok
eckoa at 2007-7-14 21:34:19 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 5

hallo ecko,

thanks for your help but the problem is :

i try to develop an online shop system in which users can register to the system with their e-mail addresse. after registering the user, system should send to user an email.

and if the user has an hotmail or gmx addresse i can't do this :(

can you help me for this problem?

thanks again.

kobeyna at 2007-7-14 21:34:19 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 6
hi kobein the problem is when you want to send mails using hotmail but sending mails to hotmail there is no problem, you just have to use a server that support smtp for sending mails, try using yahoo it works =). but what you want to do is possible
eckoa at 2007-7-14 21:34:19 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 7

Yes, you should be able to send email to hotmail addresses, but you'll

probably have to send it through your own mail server first.

Also, some people use JavaMail to write spam mailers, and some

mail services are thus rejecting messages that appear to come from

JavaMail programs. You might need to customize the Message-ID

in your message so that it doesn't appear to come from JavaMail.

bshannona at 2007-7-14 21:34:19 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 8

hi echo, bshannon

thanks for your helps.

first to echo : i have tried with yahoo.

ihave registered by yahoo and i have used the code below :

private String host="smtp.mail.yahoo.de";

Properties properties = System.getProperties();

properties.put("mail.smtp.host", host);

//properties.put("mail.smtp.port", 587);

...

Transport tr = session.getTransport("smtp");

tr.connect(host, username, password);

in last line i get en error : "530 authentication required - for help go to http://help.yahoo.com/help/us/mail/pop/pop-11.html"

i have check this out and i tried to make it with port 587 like above. but it doesn't go :( i use norton antivirus and disabed the checking outgoing email too but still not working!!

do i make a mistake? how can it be so difficult to send a mail !!!

second to : BSHANNON

i have tried it with my own smtp server namely "1st smtp server"

than it didnt work. how can i set the message ID and what should i write as message iD

thanks again

kobeyna at 2007-7-14 21:34:19 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 9
halloi have done with over googlemail server :)i have used port 25 and authenticator. and it works now :)thanks again
kobeyna at 2007-7-14 21:34:19 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 10
can you tell me the address of gmail server please
eckoa at 2007-7-14 21:34:19 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 11
sorry i have seen your msg just nowhost="smtp.googlemail.com";port = "25";
kobeyna at 2007-7-14 21:34:19 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...