Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #18907

Re: Receiving e-mail by PHP

From Lew Pitcher <lew.pitcher@digitalfreehold.ca>
Newsgroups comp.lang.php
Subject Re: Receiving e-mail by PHP
Date 2022-04-04 13:19 +0000
Organization A noiseless patient Spider
Message-ID <t2er8e$946$2@dont-email.me> (permalink)
References <1ppw3ob.xyc6q51hfgu9eN%liz@poppyrecords.invalid.invalid>

Show all headers | View raw


On Mon, 04 Apr 2022 13:51:02 +0100, Liz Tuddenham wrote:

> I appreciate that e-mails can be sent from a server by php, but Is there
> any way of receiving  them by php?

Not easily.

You possibly could write an entire local "Mail Delivery Agent" in PHP, to
deliver email locally, but this would only be a programming exercise, as
there are a wide variety of standard, usable, open MDAs available, and
the work of an MDA is not trivial. But, an MDA only delivers mail locally;
to receive email from the outside, you need an "Mail Transfer Agent" (or
MTA).

You might be able to write an entire local "Mail Transfer Agent" in PHP,
to receive and process external email, but this would again only be a
programming exercise, as there are a wide variety of standard, usable,
open MTAs available, and the work of an MTA is even harder than an MDA.

On the other hand, you can definitely write a web-paged "Mail User Agent"
in PHP to interface a webpage with your existing MDA so that PHP can
retrieve any already-received emails from the MDA (typically using either
the POP or IMAP protocols. There are a few of these PHP-based MDA's
available; SquirrelMail and RoundCube are good examples.


HTH
-- 
Lew Pitcher
"In Skills, We Trust"

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Receiving e-mail by PHP liz@poppyrecords.invalid.invalid (Liz Tuddenham) - 2022-04-04 13:51 +0100
  Re: Receiving e-mail by PHP Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2022-04-04 13:19 +0000
    Re: Receiving e-mail by PHP Stefan+Usenet@Froehlich.Priv.at (Stefan Froehlich) - 2022-04-04 15:02 +0000
      Re: Receiving e-mail by PHP Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2022-04-04 15:27 +0000
        Re: Receiving e-mail by PHP Stefan+Usenet@Froehlich.Priv.at (Stefan Froehlich) - 2022-04-04 15:49 +0000
          Re: Receiving e-mail by PHP liz@poppyrecords.invalid.invalid (Liz Tuddenham) - 2022-04-04 17:47 +0100
            Re: Receiving e-mail by PHP Jerry Stuckle <stuckle.jerry@gmail.com> - 2022-04-04 19:38 -0400
              Re: Receiving e-mail by PHP liz@poppyrecords.invalid.invalid (Liz Tuddenham) - 2022-04-05 09:09 +0100
                Re: Receiving e-mail by PHP Jerry Stuckle <stuckle.jerry@gmail.com> - 2022-04-05 12:55 -0400
                Re: Receiving e-mail by PHP liz@poppyrecords.invalid.invalid (Liz Tuddenham) - 2022-04-05 18:36 +0100
                Re: Receiving e-mail by PHP Jerry Stuckle <stuckle.jerry@gmail.com> - 2022-04-05 15:48 -0400
  Re: Receiving e-mail by PHP Paul Herber <paul@paulherber.co.uk> - 2022-04-04 16:35 +0100
  Re: Receiving e-mail by PHP Arno Welzel <usenet@arnowelzel.de> - 2022-04-06 18:43 +0200
  Re: Receiving e-mail by PHP zeneca <pasIci@ailleur.fr> - 2022-04-07 09:17 +0200
  Re: Receiving e-mail by PHP Kristjan Robam <kristjanrobam1983@outlook.com> - 2023-10-14 04:01 -0700

csiph-web