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

JavaMail: Address with white space

 
Ezra Exposito
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to send an email to an Outlook email
address which contains white spaces like
"outlook email account". I get an Illegal whitespace in address exception. Is there any way
to send an email to an address with white spaces?
Thanks
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sending to an email address or an Outlook name, because there is a difference. The name in Outlook is associated with an email address and that is what you need to be using. I am pretty sure a valid email address cannot have spaces, however I have no link to back that up with.
 
Ezra Exposito
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are correct. The outlook name is linked to a
valid email which I am now using and it works.
Thanks for your help
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic