There are 2 overloads of MailBox
constructor:
public MailBox(string address)
public MailBox(string address, string name)
Both validate address property - it needs to be a valid email address.
new MailBox("a", "b")
is going to throw, as "a" is not a valid email address.
If for some reason you need to create a MailBox
without this validation use CreateWithoutValidation
static method:
MailBox m = MailBox.CreateWithoutValidation("address");
or
MailBox m = MailBox.CreateWithoutValidation("address", "name");