• 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 ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

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
  • 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
  • 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.
 
I promise I will be the best, most loyal friend ever! All for this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic