473,549 Members | 2,247 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

incoming emails

Rod
Hi,

sometimes, when an action is done on my web site, i send an email to another
application.
This application send me automatically a confirmation by email with an
auto-generated number.

How can i automatically get the email to parse it and save this number in a
table?

Do I need a specific mail server that starts a task when it receives an
email?
Suppose I install this mail server, how can I communicate the email content
to a php script (so it can parse the email and save the number in a
table)???

Maybe I can't do that with and need to use a perl script?? So the mail
server run the perl script with the email content??

Thanks you for your help because i am lost!

Rodolphe.

Jul 17 '05 #1
4 2979
On Fri, 17 Oct 2003 12:34:42 +0200, Rod hammered his head on the keyboard
and somehow managed to type:
This application send me automatically a confirmation by email with an
auto-generated number.

How can i automatically get the email to parse it and save this number in a
table?

Do I need a specific mail server that starts a task when it receives an
email?
Most mail servers (under Linux at least) can pass an email to a script.
Suppose I install this mail server, how can I communicate the email
content to a php script (so it can parse the email and save the number
in a table)???
If you have the command line binary installed just use something like:

incomingaccount | php /home/someone/php-email.php

and send email to in************* @yourdomain.com
Maybe I can't do that with and need to use a perl script?? So the mail
server run the perl script with the email content??
The same applies, just put the perl script in the mail server setting file
(e.g. /etc/aliases for sendmail or exim).

Note Sendmail can be very tricky in where it will run processes from.
Thanks you for your help because i am lost!


You may also be able to do this with a .redirect file in the home dir of a
user who reads this account.
Or finally, you could put these emails in to a POP3 account and have a
script run every X minutes from a cron job that downloads the POP3 mail
(using the IMAP functions in PHP).

Cheers,
Andy
Jul 17 '05 #2
Rod wrote:
sometimes, when an action is done on my web site, i send an email to another
application.
This application send me automatically a confirmation by email with an
auto-generated number.

How can i automatically get the email to parse it and save this number in a
table?

Do I need a specific mail server that starts a task when it receives an
email?
Suppose I install this mail server, how can I communicate the email content
to a php script (so it can parse the email and save the number in a
table)???


I'm just playing with this for the first time. The imap functions are working
well for me so far. I plan to run a cron job every hour or so to check for and
process new mail.

http://ca3.php.net/manual/en/ref.imap.php

Shawn
--
Shawn Wilson
sh***@glassgian t.com
http://www.glassgiant.com
Jul 17 '05 #3
Rod
Hi all,

thanks you both for your answers.
i will have a look to your solutions.
I think I need time to understand, because i don't exactly know what is
POP3, IMAP etc etc.

Thanks you again

Rodolphe
"Shawn Wilson" <sh***@glassgia nt.com> wrote in message
news:3F******** *******@glassgi ant.com...
Rod wrote:
sometimes, when an action is done on my web site, i send an email to another application.
This application send me automatically a confirmation by email with an
auto-generated number.

How can i automatically get the email to parse it and save this number in a table?

Do I need a specific mail server that starts a task when it receives an
email?
Suppose I install this mail server, how can I communicate the email content to a php script (so it can parse the email and save the number in a
table)???
I'm just playing with this for the first time. The imap functions are

working well for me so far. I plan to run a cron job every hour or so to check for and process new mail.

http://ca3.php.net/manual/en/ref.imap.php

Shawn
--
Shawn Wilson
sh***@glassgian t.com
http://www.glassgiant.com

Jul 17 '05 #4
I noticed that Message-ID: <bm**********@h ome.itg.ti.com> from Rod
contained the following:
sometimes, when an action is done on my web site, i send an email to another
application.
This application send me automatically a confirmation by email with an
auto-generated number.

How can i automatically get the email to parse it and save this number in a
table?


Could PHP on the website not do it all?

--
Geoff Berrow
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
3117
by: simonc | last post by:
I've been programming in assembler and C/C++ for a number of years, but I'm only just starting down the road of PHP & MYSQL. I have a couple of questions: (1) Before I start writing my own code, to learn from, and also avoid re-inventing the wheel, does anyone know of any existing source that implements a (basic or complex) play-by-email...
2
2607
by: Alexander | last post by:
To all, A tall order, but any help on any segment of this would be appreciated: I have a table that needs to be populated with information contained in an email attachment. 1. Is it possible for Outlook to "notify" Access that an email has been received?
2
4287
by: Bob | last post by:
Hi Everybody A tough one!!! Is there any way that incoming eMails (MailItems) into Ms Outlook can be used to automatically create records in a ms Access table or sub table. Smiley Bob
2
2276
by: Dave Smithz | last post by:
Hi there, I need to build a database that also handles emails. That is, the database is a customer list database and there is quite a lot of contact with the customers through email. We want all emails to and from the customers to be stored into the database. Is it quite easy to set it up that if an email is received at a certain email...
2
13672
by: Li-fan Chen | last post by:
Hi, We find ourselves in the unenviable position of creating an email reader, may I ask how we best parse incoming messages? Ideally we would point the parser at a email stored in a POP3--grab the email body's bytestreams, and get back an array of AttachmentFile collections (filename, size, mime/type), as well as a HTMLBody and a TextBody*....
2
2167
by: =?Utf-8?B?RGFuY2Vy?= | last post by:
Hi, I was attempting to check my new incoming emails through Outlook Express (I have Windows 98, 2nd Edition). My computer seemed to be having a problem accessing and opening the emails, and the next thing I knew the screen was showing "the system is busy" message. So I pressed "Control-Alt-Delete" as it indicated to re-start the computer,...
0
3422
by: =?Utf-8?B?Q2hhcmxlcw==?= | last post by:
Like many people, I normally use Yahoo! Mail via the web and like to keep all my emails stored on the Yahoo! server. However sometimes I can’t get access to a PC/the web and I download my emails to a PDA/palmtop via POP3. The PDA uses Windows Mobile software. Since using the PDA, I have had the problem of emails disappearing from the...
0
1701
by: Michiel Overtoom | last post by:
Ahmed wrote... I'm not sure if you are able to bypass Outlook (and have Python fetch the mail itself using poplib), but if you are, the following code might be useful. I use this to pry apart emails which might contain multiple MIME parts. from email.Parser import Parser from rfc822 import parseaddr import poplib
3
5272
by: mandanarchi | last post by:
In our company we have ~15 PCs and 1 mac. I'm the computer gal and I've never used a mac before. I got it all set up, but now I've been told that the user isn't receiving incoming, external emails. She can send and receive internals without issue. I asked her to see if she could mail out (to her yahoo account) but she's not in today and hasn't...
0
7548
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7472
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7743
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7986
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7504
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6074
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3518
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1965
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1083
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.