简体   繁体   中英

Sending Fax using SMTPClient?

We have a exchangeserver configured to send the attachment of a email as fax if the the "to-address-field" is in the format [fax:user/company@faxnumber] (used internally). It works when I send manually from Outlook. But how can send an email with to-address as above using Smtpclient?

Is it possible to suppress the emailaddress validation? at the moment i get this error: "System.FormatException : The specified string is not in the form required for an e-mail address."

I'm fairly sure that it's not possible. However, at least in .Net 4.0 (which is less restrictive than earlier versions), everything except the : is fine though. Maybe you could get the admins to change the SMTP server to support other characters than : after the string fax ?

For example, maybe you could use fax= instead.

It is not possible through the SmtpClient. If fax=asdfasdf is wanted then going through interop.outlook.dll is needed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM