与 SharePoint 3.0 配合使用的 SMTP 配置 - 如何操作?

发布于 2024-08-20 23:00:45 字数 406 浏览 8 评论 0原文

我想使用 SPUtility(在 wss3.0 上)从我自己的自定义 Web 部件发送电子邮件。问题是 smtp 服务器与 sharepoint 服务位于同一主机上。 SMTP 服务器工作正常,我可以使用 telnet 发送电子邮件。 (但它总是告诉我消息已排队。在所有电子邮件都到达目的地并且它们位于我的电子邮箱中之后。)

我可以猜测问题可能是我正在归档的 SMTP 服务器的名称共享点配置。 当我使用名称:localhost 和 127.0.0.1 时,Telnet 可以工作。但 sharepoint 不接受这个名称。 :(

当我传递到 smtp 服务所在的 telnet 或 sharepoint 服务器主机名时,它不起作用,并且这些名称接受 sharepoint。

请帮助我,告诉我如何将服务器的正确名称传递给 sharepoint 配置。

I would like to send e-mail from my own custom webpart using SPUtility (on wss3.0). The issue is that smtp server is on the same host as sharepoint services. SMTP server works and I can send e-mail using telnet. (But it always telling me that message is queued. After all e-mail are reaching theirs destination and they are in my e-mail box.)

I can guess that the issue may be the name op SMTP server which I'm filing in sharepoin configuration.
Telnet works when I'm using names: localhost and 127.0.0.1. But sharepoint doesn't accept this names. :(

And when I'm passing to telnet or sharepoint server host name where smtp service is located it dosen't work, and those names accept sharepoint.

Please help me and tell me how can I pass right name of a server to sharepoin configration.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

櫻之舞 2024-08-27 23:00:45

如果 SMTP 服务器与您的 SharePoint 站点位于同一机器上,请尝试“localhost”。如果这不起作用,请尝试使用服务器的全名,例如 myserver.mycompany.com(mycompany.com 是您的本地域)。

之前构建 SharePoint 网站时,我们将 SharePoint SMTP 传出/传入设置与代码使用的服务器名称分开。您可以将“localhost”粘贴到可从您的所有站点访问的某个位置,例如 web.config 设置。然后继续维护配置。 (我将其存储在可维护的 SharePoint 列表中)。

如果不使用 SharePoint SMTP 设置会让人皱眉,那么您只需以某种方式使其工作即可。

您可以检查 a) 是否可以从 SharePoint 的其他部分发送电子邮件 b) 如果不能,则这不是某种权限问题。

If the SMTP server is on the same box as your SharePoint site, try 'localhost'. If that doesn't work, try the full name of the server e.g. myserver.mycompany.com (mycompany.com being your local domain).

Previously building a SharePoint site, we separated the SharePoint SMTP Outgoing/Incoming settings with the server name that our code uses. You can stick 'localhost' somewhere accessible from all of your site, such as a web.config setting. Then maintain the configuration going forwards. (I stored this in a maintainable SharePoint list).

If not using the SharePoint SMTP settings be frowned upon, then you'll just have to make it work somehow.

You could check to see a) Whether you can send emails from other parts of the SharePoint b) If not, that this isn't some sort of permissions issue.

高跟鞋的旋律 2024-08-27 23:00:45

问题出在 SMTP 配置上。当您打开 SMTP 服务器的 IIS6 配置,然后打开服务器属性并转到“访问”选项卡时,您可以看到有两个按钮。

1)连接

2)relay

只要把你的主机名放在那里,问题就解决了。 :)

The issue was with SMTP configuration. When you open IIS6 configuration of SMTP server, then open server propertis and go to the Access tab, you can see there tow buttons.

1)connection
and
2)relay

Just put there your host name and problem is solved. :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文