简体   繁体   中英

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). Is it ever possible to configure IIS or Apache in my local PC and connect to home broadband and can send email?

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).

I do not need to get any reply from them they will send again to my gmail address.

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?

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. Out of curiosity, what are you trying to accomplish exactly? There may be a simpler solution within gmail's API.

What you want is to build a SMTP Server!

Things you will need

  • STATIC IP.
  • Reverse DNS from your ip to you hostname (type nslookup yourip on cmd.exe the result must be your hostname)
  • DNS MX entry on your DNS ZONE like 0 your.host.name.com

A program/code that will implement the RFC2821 http://www.ietf.org/rfc/rfc2821.txt

I have build a SMTP server that ONLY receive emails... maybe you can start from there....

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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