SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Hybrid View

  1. #1
    SitePoint Addict
    Join Date
    Jun 2008
    Posts
    279
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Send Emails Locally Through Network

    Hi,

    In order to test my PHP email scripts, is it possible to send emails locally from one machine on a LAN to another machine, without using the internet?

  2. #2
    SitePoint Evangelist
    Join Date
    May 2006
    Location
    Denmark
    Posts
    407
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, but you'll still need a mail transport agent (MTA) on each machine. Common ones for GNU/Linux are e.g. sendmail or Postfix.

    My computer is called daniel-laptop, so to send a mail I could send it to e.g. daniel@daniel-laptop or root@daniel-laptop from anywhere inside the network my computer is connected to.

    Emails are always user@machine, so as long as the part after the @ is a valid hostname (i.e. points to a machine you can reach) then you can send an email.

  3. #3
    SitePoint Addict
    Join Date
    Jun 2008
    Posts
    279
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you know of any programs for Windows? - Preferably ones that don't need to be installed?

  4. #4
    SitePoint Member
    Join Date
    Nov 2008
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Daniel0 View Post
    Yes, but you'll still need a mail transport agent (MTA) on each machine. Common ones for GNU/Linux are e.g. sendmail or Postfix.

    My computer is called daniel-laptop, so to send a mail I could send it to e.g. daniel@daniel-laptop or root@daniel-laptop from anywhere inside the network my computer is connected to.

    Emails are always user@machine, so as long as the part after the @ is a valid hostname (i.e. points to a machine you can reach) then you can send an email.
    I've used Postfix, fairly easy.

  5. #5
    SitePoint Evangelist
    Join Date
    May 2006
    Location
    Denmark
    Posts
    407
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No, I don't know any. Besides, you'll need to install it no matter what.

    Anyway, the first result for "windows mta" on Google is this:
    http://lists.otrs.org/pipermail/otrs...ay/001789.html
    It contains a small list of MTAs for Windows.

  6. #6
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    If its just testing you're after this old thread contains some ideas, also look at fakemail.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •