• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Java Mail, diff. domain

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
hth,
bear
 
He was giving me directions and I was powerless to resist. I cannot resist this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic