Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #18914
| From | Jerry Stuckle <stuckle.jerry@gmail.com> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Receiving e-mail by PHP |
| Date | 2022-04-04 19:38 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <t2fvhm$te$1@jstuckle.eternal-september.org> (permalink) |
| References | (1 earlier) <t2er8e$946$2@dont-email.me> <1t624b0812i33fed1n3e8%sfroehli@Froehlich.Priv.at> <t2f2pv$ptm$1@dont-email.me> <3t624b1302i34145cn3e8%sfroehli@Froehlich.Priv.at> <1ppweh4.6f95661k8m860N%liz@poppyrecords.invalid.invalid> |
On 4/4/2022 12:47 PM, Liz Tuddenham wrote: > Stefan Froehlich <Stefan+Usenet@Froehlich.Priv.at> wrote: > >> On Mon, 04 Apr 2022 17:27:59 Lew Pitcher wrote: >>> On Mon, 04 Apr 2022 15:02:56 +0000, Stefan Froehlich wrote: >>>> On Mon, 04 Apr 2022 15:19:10 Lew Pitcher wrote: >>>>> 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. >>>> >>>> Depends on how you define "receive". >>>> >>>>> You possibly could write an entire local "Mail Delivery Agent" in >>>>> PHP, [...] >>>> >>>> Perhaps Liz only wants to process incoming emails with PHP. In this >>>> case it is not at all necessary to implement a delivery agent, but >>>> piping emails (by whatever means) from an existing mail agent into >>>> the PHP script would suffice. >> >>> What you describe is, in effect, a "Mail User Agent" (or MUA), and >>> (as I said) an MUA is relatively easy to create with PHP. >> >> Ok. In my eyes a MUA is reading some mail box on request of it's >> user (pull action) while piping into a (PHP- or other) script is a >> push action. But as far as the processing is concerned there is >> indeed no difference. > > Thanks for all the replies. I was almost expecting to find it was > impossible, but now you have given me some guidance on where to look and > what to search for.. I have never gone into this in any depth before, > so it will involve quite a lot of work just getting to grips with the > basics, which is something I was reluctant to spend a lot of time on if > there wasn't likely to be any outcome. > > Your replies were encouraging, so I'll go away and do my research. > The real question her is - what are you trying to do exactly? Do you need a script to receive email from external sources? That would be an MTA (Mail Transport Agent), which as others have indicated is very complicated. If you want a script to get all emails as they come in, then as indicated you can pipe the email to a PHP script to process it. This requires a modification to your MTA, which may or may not be possible depending on your platform. The other option is to process the email when it has been received and is awaiting delivery on you to retrieve it. In that case you need to handle the POP3 or IMAP interface, depending on what your server uses. There are PHP interfaces for both as well as scripts to do some things like create a web interface for IMAP processing. So if you can expand on exactly what you're trying to do we can help more. -- ================== Remove the "x"'s from my email address Jerry Stuckle stucklex.jerryx@gmail.com ==================
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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