• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
  • Himai Minh
  • Carey Brown
  • salvin francis

Java Mail, diff. domain

Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
I am using java mail Api to send mails.
I m using my proxy server's settings for that.
I can send mails.
but let us say my domain name is abcd.com
i can send mails to only where email id ends with abcd.com
but if i change it to anyother like my hotmail id the following exception is thrown
Sending failed;
nested exception is:
javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
javax.mail.SendFailedException: 550 5.7.1 <sunilkbansal@hotmail.com>... we do not relay <info@abcd.com>
but could be the reason and what is the solution.
Thanks in Advance..
Sunil Bansal
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well I'm not an expert nor do I think this is the answer but...
I found that if you send java mail for instance

blabla@myrepairshop.com is really blabla@myrepairshop.net it wont work but when i sent it to the .net it worked. I believe you have to do something for naming resolutions. Sorry I couldnt be more help
Posts: 67478
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That means that that SMTP server has turned "relaying" off -- meaning it will only allow you to send mail from the domains that the SMTP server allows. This is usually to prevent spammers from using the server to relay their e-mails at someone else's cost.
Someone more familiar with SMTP could probably elaborate further.
    Bookmark Topic Watch Topic
  • New Topic