如何从 RFCOMAPI 发送 RightFax 电子邮件
这是我目前所拥有的:
var faxserver = new FaxServerClass
{
ServerName = "{server ip}",
AuthorizationUserID = @"{my username}",
Protocol = CommunicationProtocolType.cpTCPIP,
UseNTAuthentication = BoolType.False
};
faxserver.OpenServer();
var fax = (Fax) faxserver.get_CreateObject2(@"{my username}", CreateObjectType.coFax);
fax.ToEmailAddress = "{my email}";
fax.IsINLJob = BoolType.False;
fax.EmailSubject = "Some random subject";
fax.IsProductionFax = BoolType.True;
fax.Send();
此代码不会引发任何异常,但查看 FaxUtil 我看到“转换传真正文或封面时出现问题”。我该如何解决这个问题?
不幸的是,该产品关于其 API 的文档很少。我所能找到的就是这个链接。
Here is what I currently have:
var faxserver = new FaxServerClass
{
ServerName = "{server ip}",
AuthorizationUserID = @"{my username}",
Protocol = CommunicationProtocolType.cpTCPIP,
UseNTAuthentication = BoolType.False
};
faxserver.OpenServer();
var fax = (Fax) faxserver.get_CreateObject2(@"{my username}", CreateObjectType.coFax);
fax.ToEmailAddress = "{my email}";
fax.IsINLJob = BoolType.False;
fax.EmailSubject = "Some random subject";
fax.IsProductionFax = BoolType.True;
fax.Send();
This code doesn't throw any exceptions but looking at FaxUtil I see "Problem converting fax body or cover sheet". How can I fix this?
Unfortunatly, this product has very little documentation regarding their API. All I could find is this link.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您无法通过 RightFax 的 COM API 发送电子邮件。您必须使用其他方法,例如集成模块。这是 RightFax 的设计。
You are not able to send emails though the COM API for RightFax. You must use another method such as the integration module. This is by design of RightFax.