简体   繁体   English

使用SMTPClient发送传真?

[英]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). 如果“ to-address-field”的格式为[fax:user / company @ faxnumber](内部使用),我们将Exchange Server配置为以电子邮件形式发送电子邮件附件。 It works when I send manually from Outlook. 当我从Outlook手动发送时,它可以工作。 But how can send an email with to-address as above using Smtpclient? 但是如何使用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." 目前,我收到此错误:“ System.FormatException:指定的字符串不是电子邮件地址所需的格式。”

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. 但是,至少在.Net 4.0(比以前的版本没有那么严格的限制)中,除:之外的所有内容都可以。 Maybe you could get the admins to change the SMTP server to support other characters than : after the string fax ? 也许您可以让管理员更改SMTP服务器以支持除以下字符之外的其他字符:字符串fax

For example, maybe you could use fax= instead. 例如,也许您可​​以改用fax=

It is not possible through the SmtpClient. 无法通过SmtpClient。 If fax=asdfasdf is wanted then going through interop.outlook.dll is needed. 如果需要Fax = asdfasdf,则需要通过interop.outlook.dll。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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