aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes I need a smtp Server for my javamail!!!?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "I need a smtp Server for my javamail!!!??" Watch "I need a smtp Server for my javamail!!!??" New topic
Author

I need a smtp Server for my javamail!!!??

Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
Hey guys. I'm developing my application and it requires some javamail stuff. Is there any application server or open source stuff that I can use, install it in my pc (win 2000) and use it as a mail server (SMTP)??
is jakarta JAMES the one I need? what do you guys use??
thanks


I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
Trever Shick
Greenhorn

Joined: Jul 14, 2002
Posts: 7
If you have a linux box you should be set.
It will act as an appropriate MTA (mail transfer agent)...
If you don't have Linux then try James. You can also just try to find one out on the 'net... Although this is most likely frowned upon.
Try hitting "mail." + any common domain names and you'll eventually find one you can test with.
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Maybe you can use your own mail client setup.
You then have:
- 'outgoing mail server' the 'smtp host' in javamail.
- 'user name' the username in javamail.
- 'password' the password in javamail.
/Rene


Regards, Rene Larsen
Dropbox Invite
swapnil dey
Greenhorn

Joined: Sep 25, 2000
Posts: 18
Hi Andrez,
i don't know which eMail server to use, im using Win2000 box with IIS installed, but when i try sending mail using this mail server i get the exception :

i also tried sending & reading mail thru the hclinfinet SMTP server (using the ip addresses of the SMTP & POP3 servers) but i got the exception:

it seems the problem is in getting access to the specified server which should not happen as i am a registered user of hclinfinet.
Could u help in sorting out the prob...
Thanx in advance.
Dey.
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
Hi swapnil.
Hi was gettn an error like the first one you posted.:
550 Unable to relay for myname@rediffmail.com
I figured out that many SMTP servers deny access because external people try to send spam emails using other people's SMTP servers. For example, I was trying to use mycgiserver.com SMTP server (I do have an account in mycgiserver and I am NOT planning to spam...), but it was denied because I have an external application using its resources.
Now I'm at university at the moment, so I'm using this SMTP server and it's working, even though it only allows me to send mails to students account. But at least I know my application is working. As soon as I host it in a ISP I will be able to send emails to any account.
as for the second error mate:
Could not connect to SMTP host: 203.90.66.76, port: 25
I think it is self-explanatory, you could not connect, maybe you still have problems with the SMTP. Maybe JAMES is your solution or if you are at Uni you can use their SMTP server the way I'm doing it .
hope it helps
cheers
swapnil dey
Greenhorn

Joined: Sep 25, 2000
Posts: 18
Hi andrez,
thanx for the reply as far as the first case is concerned i understand what u r pointing out is correct, but the second case (i.e my personal IIS server) i wonder what the problem is, coz if i try to send a mail to the same server (or a server on the intranet) the prog work, hence the problem is not associated with incorrect SMTP server address. can u suggest some other (public)server that can be accessed for the same coz i dont have access to the univ SMTP server.
regards dey!
swapnil dey
Greenhorn

Joined: Sep 25, 2000
Posts: 18
Hi andrez,
thanx for the reply as far as the first case is concerned i understand what u r pointing out is correct, but the second case (i.e my personal IIS server) i wonder what the problem is, coz if i try to send a mail to the same server (or a server on the intranet) the prog work, hence the problem is not associated with incorrect SMTP server address. can u suggest some other (public)server that can be accessed for the same coz i dont have access to the univ SMTP server.
Another thing that i couldn't make out was the inaccessibility of hclinfinet account for reading POP3 mails (as i couldn't be SENDING any spam mails n i was providing the username n password to authenticate myself) see if u can help...
regards dey!
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
Originally posted by swapnil dey:
Hi andrez,
...i wonder what the problem is, coz if i try to send a mail to the same server (or a server on the intranet) the prog work, hence the problem is not associated with incorrect SMTP server address....

hhmmmm.... If I try to send mails to accounts that are not inside Uni I get an error. This is because the SMTP server at uni has been 'configured' (don't ask me how ;-)) only to deliver messages to the students account. So it's probably the same problem you are experiencing. You are able to send mails inside your intranet, right? but you can't outside, right? I'd do a little bit more research in the SMTP server you're using and find out what happens. They probably have restrict some functionalities, maybe . Again these are just suggestions, I'm not an expert on this topic...
can u suggest some other (public)server that can be accessed for the same coz i dont have access to the univ SMTP server.

I have no idea mate... sorry..do a search on the internet..
let me know if you solve your problem
cheers
Senthil B Kumar
Ranch Hand

Joined: Feb 09, 2004
Posts: 140
Hi,
i am too using the IIS SMTP mail server....... i too got the SendFailedException.......
what from mail ID should i give in the from address....
Eg.
My M/C name: ABC1234
My Win2k login: kumar
so i gave kumar@ABC1234 as to address and as from address.......
still i am getting the same error.. invalid address, unable to relay for kumar@ABC1234
how to create an email account in the IIS SMTP mailserver so that i can use it in my JAVA program for testign.......


Work like you don't need the money. Love like you've never been hated. Dance like nobody's watching. Sing like nobody's listening. Live like it's Heaven on Earth.
Currently I Reside Here WEBlog
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: I need a smtp Server for my javamail!!!??