Win a copy of Rust Web Development this week in the Other Languages forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic