• 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

Can i send mail to other than Local Address with this code..i mean to Yahoo or Gmail

 
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I have wrote one program to send mail to from Java application ..Here i am using XX.XX.XXX.XX SMTP address to send mail..

My problem is i can send mail from java application to my company email ID i.e harish.t@companyName.com ,if i use abc@yahoo.com or xyz@gmail.com then i am getting


Note: Abc & xyz is replaced with proper name

Can anyone tell me why i am getting this exception?

code :


Note: using that SMTP server i can send & receive mail using outlook
[ August 24, 2006: Message edited by: harish thrivile ]
 
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
The SMTP server you are using is not allowing you to relay messages ostensibly from another domain. If you want to relay xyz@gmail.com over this server you'll need to ask the server administrator to configure it to allow this.
reply
    Bookmark Topic Watch Topic
  • New Topic