Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Harish Tiruvile
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 ]
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic