+1 vote

Hi,
we have to send an email to a SMTP server that forward the emails in a special format to a fax server.
The to address must be '[fax:0049230052687]'

Limilabs always run into an exception, because the address is not a valid emailformat. Anyway, the SMTP server except it.

How can I disable checking the format of the to address?

Kind regards,
Marco

by (450 points)
retagged by

1 Answer

0 votes
 
Best answer

Use MailBox.CreateWithoutValidation method:

MailBox m = MailBox.CreateWithoutValidation("[fax:0049230052687]");
by (301k points)
selected by
...