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
Joined: Jul 18, 2001
Posts: 2712
posted
0
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
Joined: Apr 26, 2001
Posts: 34
posted
0
You are correct. The outlook name is linked to a valid email which I am now using and it works. Thanks for your help