• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1160
  • 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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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