• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.......
 
reply
    Bookmark Topic Watch Topic
  • New Topic