• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

java mail error

 
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have a free proxy server software on my proxy server(A) which sends mail through a particular mail server(wesra.com) for all the computers attached to A successfully but when i give the same address in my java mail code it gives me the following of the errors. any ideas why?
1.> this is on my local development environment where i am sending this through one of my computers connected to proxy.

javax.servlet.ServletException: Sending failed;
nested exception is:
javax.mail.MessagingException: Unknown SMTP host:

2.> this is the error i get when i try to send mail through the proxy server who is hosting the site(i mean the server it self)
javax.servlet.ServletException: Sending failed;
nested exception is:
javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
javax.mail.SendFailedException: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)

Please guide me .it is urgent. thnx in advance.
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm assuming your proxy is configured to relay SMTP? Most only handle HTTP.

Your second error is a 553 error - which means the mailbox name is not allowed. This is expected to be because the mailbox syntax is incorrect, but can also happen if the server is configured to restrict the domains you can send mail to.

For both errors I'd check the proxy configuration.
 
I would challenge you to a battle of wits, but I see you are unarmed - shakespear. Unarmed tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic