从我的域发送电子邮件需要什么

发布于 2024-07-10 07:23:57 字数 134 浏览 3 评论 0原文

我希望能够通过 Windows 2003 服务器从我自己的域 (Domain.com) 发送电子邮件,我测试了我的应用程序,它在我的本地 IIS 上运行正常。

但我不知道到底需要什么才能让它在外面工作。

提前致谢。

I want to be able to send e-mail from my own domain (Domain.com) over Windows 2003 server, I tested my application and it's working alright on my local IIS.

But I don't know exactly what's needed to get it work for out side.

Thanks in advance.

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

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

发布评论

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

评论(5

压抑⊿情绪 2024-07-17 07:23:57

Bashar,我认为您所说的“外部”是指“我希望它来自domain.com”(您的域)。

为此,您必须更改域注册中的 MX(邮件交换)记录以指向 SMTP 服务器的 IP 地址。 当然,这意味着任何现有的电子邮件服务器将不再处理该域的电子邮件; 所有内容都将路由到 IIS 计算机。 如果这不合适,那么您将无法真正发送源自您的域的电子邮件。

一种解决方法是在电子邮件的“回复”和“FromAddr”中使用您的域名。 事实上,在“回复”字段中看到您的域名就足以让大多数人相信该电子邮件确实源自该字段。 但是,如果 FromAddr 指向一个 IP 地址上的实际电子邮件服务器,并且邮件实际上源自不同的 IP 地址(例如您的 IIS 服务器),则许多电子邮件中继服务器会将其视为可能的垃圾邮件进行阻止。

另外,我建议您研究 AspNetEmail 来管理电子邮件(实际上是 SMTP)编程。 除了拥有精湛的控制能力之外,他们还拥有非常丰富的技术支持文章和一流的支持计划。 这些人确实了解 SMTP。 即使不购买任何东西,您也可以阅读他们的内容,但很多信息都是按照他们控制的特定术语表达的。 当然,我也认为支持对你有帮助的供应商是个好主意。

Bashar, by "outside" I take it that you mean, "I want it to come from domain.com" (your domain).

To do this, you'll have to change the MX (mail exchange) record in the domain registration to point to the IP address of your SMTP server. Of course, this will mean that any existing email server is no longer going to be processing email for this domain; everything will be routed to the IIS machine. If this isn't suitable then you will not be able to truly send email that originates at your domain.

One workaround is to use your domain in the "Reply-to" and "FromAddr" of your email. Indeed, seeing your domain in the Reply-to field is enough to convince most people that the email did actually originate from there. However, if the FromAddr points to an actual email server on one IP address and the mail actually originates from a different IP address (e.g. your IIS server) then many email relay servers will block it as likely spam.

Also, I recommend that you look into AspNetEmail for managing email (really SMTP) programming. In addition to having a superb control, they also have a very rich body of technical support articles and a first-rate support program. These people really know SMTP. You could read their content even without buying anything but a lot of the information is cast in terms that are specific to their control. Of course, I also think it is a good idea to support vendors that help you.

帅的被狗咬 2024-07-17 07:23:57

但是我不知道到底需要什么
让它在外面工作。

到外面打工? 您想要从一台不支持此功能的计算机向[电子邮件受保护]发送电子邮件不运行邮件服务器? 为此,您必须注册域名。 这样就完成了吗?

But I don't know exactly what's needed
to get it work for out side.

Work for outside? You want to send an email to [email protected] from a computer that doesn't run the mail server? For this you will have to register the domain. Is that done?

温柔戏命师 2024-07-17 07:23:57

您的编程语言的电子邮件库应该具有指定处理来自您的域的电子邮件的传出 SMTP 服务器的功能。 在早期,创建邮件并从本地 SMTP 服务器发送它是很容易的。

询问您的 ISP 是否提供对 SMTP 服务器的访问以中继电子邮件。 如果完成,您将能够将电子邮件发送到任何目标电子邮件地址,而不必担心电子邮件会进入垃圾文件夹。

The email library of your programming language should have a facility to specify the outgoing SMTP server that handles emails originating from your domain. In the earlier days it used to be easy to just create a mail and send it from local SMTP server.

Ask your ISP if they provide access to a SMTP server for relaying emails. If that's done, you'll be able to send emails to any destination email address, without worrying about emails going to the junk folder.

哭泣的笑容 2024-07-17 07:23:57

如果您已经注册了域名,那么要发送邮件,除了 SMTP 客户端库和愿意接受您的邮件并转发它的 SMTP 服务器(即在您的 ISP 处)之外,您不需要任何其他东西到目的地。

接收邮件有些困难。 为此,您需要:

  • 具有已知(固定)IP 地址的 SMTP 服务器
  • DNS 中指向该服务器的 MX 记录
  • 邮件客户端软件,用于从服务器下载邮件

If you've got your domain registered, then to send mail you don't need anything except an SMTP client library and an SMTP server (i.e. at your ISP) that's willing to accept your mail and forward it to the destination.

To receive mail is somewhat harder. For that you need:

  • an SMTP server with a known (fixed) IP address
  • MX records in the DNS pointing to that server
  • mail client software, to download mail from the server
古镇旧梦 2024-07-17 07:23:57

我使用 gmail 是因为我有很多域,它在控制面板中具有易于设置的“发送为”功能,当您在域的电子邮件上添加转发器时,一切都已设置完毕

I use gmail because I have so many domains, it has an easy to setup "send as" feature in the control panel and when you add a forwarder on your domain's email you are all set

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