Connecting Tech Pros Worldwide Forums | Help | Site Map

JAVA Mail and SMTP

dmjpro's Avatar
Lives Here
 
Join Date: Jan 2007
Location: India (West-Bengal)
Posts: 2,451
#1: Apr 17 '07
i have been trying to do mail programming in java.... al in vain

one thing still irritating that SMTP ..... the server must have the SMTP service provider.

how can i know that the server is SMTP supported?????

is it the extra job i have to do .... if i have JAVA MAIL package????

total thing is now mess up to me.

plz help!

JosAH's Avatar
Expert
 
Join Date: Mar 2007
Posts: 10,611
#2: Apr 17 '07

re: JAVA Mail and SMTP


I don't understand your problem; it's like an ordinary letter: you can't just throw
it up in the air and hope for the best. You have to get your letter to a post office
one way or another. Think of that post office as an SMTP server.

Most (if not all) SMTP servers only accept incoming mail from senders in
the same domain (a feeble attempt to avoid spam etc. because you can forge
sender addresses quite easily).

kind regards,

Jos
dmjpro's Avatar
Lives Here
 
Join Date: Jan 2007
Location: India (West-Bengal)
Posts: 2,451
#3: Apr 17 '07

re: JAVA Mail and SMTP


thanx for ur help.

i ll be very grateful if u explain me with sample code line by line.

regards.
JosAH's Avatar
Expert
 
Join Date: Mar 2007
Posts: 10,611
#4: Apr 17 '07

re: JAVA Mail and SMTP


I wrote a little example in this thread.

kind regards,

Jos
Reply