473,382 Members | 1,386 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

procmail for invoking php script?

how can i use procmail for invoking php script whenever an email is received?

basically i want procmail to invoke and pass the contents of email to the php script,so that it can access database for querying according to the email and send the retrieved information from the database back to the procmail,which would send an email to that particular email address,from which email was received.
Jul 5 '10 #1
1 1940
dlite922
1,584 Expert 1GB
I'm not sure what procmail is, but php can query a mailserver for new mail and parse them.

php works great with MySQL and other DB's too, check the php documentation for more info on how to use it.

You can send emails from php very easily using the mail() function.


Dan
Jul 9 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: David Van Horn | last post by:
As a shell script, the following program works as expected. --------------------------------------- #! /usr/bin/sh echo '<html><? print 1 ?></html>' | php...
1
by: Frank R. Suchy | last post by:
Hi there, the task: Any mail that drops into a specified mailbox shall cause a (php-)script to immediately react with some action. Quite a common task, isn't it? I could use e.g. cron to let...
16
by: Chuck Amadi | last post by:
Sorry to bovver you again (again) here's script. I still can't see why the get_payload() doesn't produce the plain text message body of an emails in the testwwws users mailbox. As you can see I...
2
by: JeffFinnan | last post by:
I am trying to develop some script to open files for use in a particular plugin called Chime which is used for molecular visualization. I am just experimenting right now. The whole script works...
13
by: Patrick | last post by:
I understand that with IIS5.1 on Windows XP Professional SP1, I can 1) Either set under IIS Manager-> Any specific Virtual Directory-> Configuration->Options->ASP Script timeout for all pages...
1
by: surfergirl | last post by:
How can I use perl to remove garbage in my mailbox caused by my procmail filter. This is a known problem but it occurs too frequently and I certainly don't want to give up procmail. What I get...
3
by: Pet Farrari | last post by:
Hi, I am having problem with setting up procmail to work with a C program I wrote. The C program is to determine whether the domain part of the incoming email is a forwarded email, if it is,...
10
by: Bill Bell | last post by:
The subject line is a little too general. I would like you to tell me about scripts that can receive email messages and call other scripts depending on the content of these messages. Thanks!
1
by: =?ISO-8859-1?Q?Richard_Sim=F5es?= | last post by:
Hopefully, this explanation will sufficiently clear despite the lack of code. I wrote a python script that takes data via stdin, does stuff with the data, and outputs the result to stdout. A...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.