Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Meaningless Drivel and the fly likes Solve error of Invalid Internet Address Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Other » Meaningless Drivel
Bookmark "Solve error of Invalid Internet Address" Watch "Solve error of Invalid Internet Address" New topic
Author

Solve error of Invalid Internet Address

Prashant Chindhade
Ranch Hand

Joined: Jan 19, 2011
Posts: 77
I have a java application that uses to send email using form like

from :

Subject :

Body:

i also have purchased a domain name. but when i run application it is giving an error of invalid internet address. please help

How to solve this problem.

Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2409
Were you planning on letting us know what this Java application does -or is supposed to do- or how it works, or what the error is, or should we just guess?
Prashant Chindhade
Ranch Hand

Joined: Jan 19, 2011
Posts: 77
its a simple mail service when anyone goes on a contact tab. he/she will have to fill up form like following.

1) From :
2) Subject:
3)Body:


after this on click of send button the mail is received by company representative.

I have done all the coding but the only error is it is showing error like following.

javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
SMTPAddressFailedException: 550 <From mail id> No such user here


is this information enough for you..or i should provide anything more..?? please let me know..

thanks

Prashant
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14957
    
  26

It looks like you are forgetting to fill in some information, or you are putting the wrong information in some field.

The error comes from the mail server and it tells you that there is no mail account under the name "From mail id" on the server. Sounds reasonable, the literal text "From mail id" doesn't sound like a normal username or e-mail address.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 3989
    
  18

Try unplugging your internet cable. It might get rid of this particular error.


The mind is a strange and wonderful thing. I'm not sure that it will ever be able to figure itself out, everything else, maybe. From the atom to the universe, everything, except itself.
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2409
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4347
    
    2

he must have thought this was a meaningless question


SCJP
Visit my download page
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Solve error of Invalid Internet Address
 
It's not a secret anymore!