• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1275
  • Last Modified:

Regarding the java mail api's

Hi,
   I am getting the following exception when I tried to send a mail from my java mail client using mail API's
javax.mail.internet.AddressException: Missing local name in string ``@''
please help to resolve the same.
0
sangameshrh
Asked:
sangameshrh
  • 3
1 Solution
 
objectsCommented:
your email address is invalid, check it and correct
0
 
sangameshrhAuthor Commented:
I am using a valid mail ID
0
 
objectsCommented:
what are you using it.
add some logging to your app to print it out before it send the mail
0
 
objectsCommented:
that error suggests you have nothing befroe the @
eg.
@objects.com.au
0
 
ebertkCommented:
This exception is thrown (like the above post states) when there is nothing infront of the @ sign.  but you have another issue.  Normally the exception would be like this:

Trace: javax.mail.internet.AddressException: Missing local name in string ``@faxtastic.co.uk''

Where the item in quotation marks is the String that was to contain the email address.  Since your exception was:
javax.mail.internet.AddressException: Missing local name in string ``@''

It looks like that the string that was suppose to have your complete (and hopefully valid) email address actually only contained the @ sign.  
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now