简体   繁体   English

我可以从本地计算机(IIS或Apache)发送电子邮件给朋友(例如gmail)吗?

[英]Can I send email to friends (say to gmail) from my local computer (IIS or Apache), if yes how?

I am planning to send email to my friends (they are in gmail and hotmail) from my local PC which I use at my home (in dynamic IP). 我正计划从我在家中使用的本地PC(以动态IP)向我的朋友(他们使用gmail和hotmail)发送电子邮件。 Is it ever possible to configure IIS or Apache in my local PC and connect to home broadband and can send email? 是否可以在本地PC中配置IIS或Apache并连接到家庭宽带并可以发送电子邮件?

I do not want to take any help from any other hosting company (as generally we do by using .Net or Php by taking SMTP address) so if need I can try to configure some website name to my PC (if possible). 我不想从任何其他托管公司那里获得任何帮助(通常,我们通常通过使用.Net或Php来获取SMTP地址),因此如果需要,我可以尝试为PC配置一些网站名称。

I do not need to get any reply from them they will send again to my gmail address. 我不需要他们的任何答复,他们会再次发送到我的Gmail地址。

Is it ever possible as my plan? 我的计划有可能吗?

This question may be of some help to you: How to send email from local machine to gmail? 这个问题可能对您有所帮助: 如何将电子邮件从本地计算机发送到gmail?

You should be able to run a .NET, PHP or other local web service on your home machine and use one of the libraries included in the link above to send e-mails without requiring a 3rd party web host. 您应该能够在家用计算机上运行.NET,PHP或其他本地Web服务,并使用上面链接中包含的库之一来发送电子邮件,而无需第三方Web主机。 Out of curiosity, what are you trying to accomplish exactly? 出于好奇,您到底想完成什么? There may be a simpler solution within gmail's API. gmail的API中可能有一个更简单的解决方案。

What you want is to build a SMTP Server! 您要构建一个SMTP服务器!

Things you will need 您需要的东西

  • STATIC IP. 静态IP。
  • Reverse DNS from your ip to you hostname (type nslookup yourip on cmd.exe the result must be your hostname) 将IP从DNS反向转换为主机名(在cmd.exe上键入nslookup yourip,结果必须是您的主机名)
  • DNS MX entry on your DNS ZONE like 0 your.host.name.com DNS区域上的DNS MX条目,例如0 your.host.name.com

A program/code that will implement the RFC2821 http://www.ietf.org/rfc/rfc2821.txt 将实现RFC2821的程序/代码http://www.ietf.org/rfc/rfc2821.txt

I have build a SMTP server that ONLY receive emails... maybe you can start from there.... 我建立了一个仅接收电子邮件的SMTP服务器...也许您可以从那里开始....

https://stackoverflow.com/questions/24834765/how-receive-emails-in-net-listening-connection-from-gmail-yahooo-not-a-pop https://stackoverflow.com/questions/24834765/how-receive-emails-in-net-listening-connection-from-gmail-yahooo-not-a-pop

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

相关问题 如何将电子邮件从本地计算机发送到gmail? - How to send email from local machine to gmail? 如何在本地计算机上测试电子邮件确认? - How can I test email confirmation on my local computer? 我如何在Cakephp中发送电子邮件-从本地主机到gmail帐户 - how can i send email in cakephp - to gmail account from localhost 如何使用gmail SMTP从IIS PHP发送电子邮件? - How to send email from IIS PHP using gmail SMTP? 为什么我不能使用我的本地域发送电子邮件,但如果我使用gmail,它将成功发送到localhost - Why I can't send email using my domain local but if I'm using gmail it will successfully send in localhost Mailgun:如何从我的本地机器(Laravel)发送电子邮件 - Mailgun: How can send email from my local machine (Laravel) 如何在Node.js脚本中从Gmail帐户发送电子邮件? - How do I send email from my Gmail account in my Node.js script? 如何使用Gmail作为SMTP并在Java代码中使用它来发送电子邮件? - How can i use my gmail as SMTP and use it in java code to send email.? 如何使用python向我的gmail发送电子邮件? - How do I send an email to my gmail using python? Python - 如何使用 gmail 在 Python 中发送带有附件的电子邮件? - Python - How can I send email with attachments in Python using gmail?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM