473,473 Members | 2,164 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

OT ? eMail as a trigger ?

Hello,

I'm not shure wether it's OT or not.

I want to use an eMail as a trigger to start a program.

E.g. an eMail-Group: any group-member sends an eMail to a group-e-adress
an the Mail is dispatches automatically to all members.

I know there are services like yahougroups who do exactly this, but I
wonder wether it's possible to do something like this by my own.

Further purposes could be to trigger any program on a webserver by a
special trigger-eMail.

Any hints ?

TIA

Hanjo

--
Software & Seminar-Kontor Hans-Joachim Grüßner
Glasholz
D-24369 Waabs
http://www.gruessner.de
Jul 17 '05 #1
11 2437
Hanjo Grüßner wrote:
Hello,

I'm not shure wether it's OT or not.
Possibly as you don't need php.

I want to use an eMail as a trigger to start a program.
Are you running linux/unix/bsd?

E.g. an eMail-Group: any group-member sends an eMail to a group-e-adress
an the Mail is dispatches automatically to all members.


If you said yes above and are running sendmail look up aliases.

You can create simple mailing lists or feed the email into a script /
program.

--
http://www.petezilla.co.uk
Jul 17 '05 #2
Hello,

on 06/12/2005 08:22 AM Hanjo Grüßner said the following:
I want to use an eMail as a trigger to start a program.

E.g. an eMail-Group: any group-member sends an eMail to a
group-e-adress an the Mail is dispatches automatically to all members.

I know there are services like yahougroups who do exactly this, but I
wonder wether it's possible to do something like this by my own.

Further purposes could be to trigger any program on a webserver by a
special trigger-eMail.


That is easy. I do that all the time. Basically you need to assign a
certain address to a mailbox reachable by POP3. Then you keep polling
the mailbox periodically until a new message reaches there to be
redistributed to your mailing list.

You may want to use this POP3 class for fetching your messages.

http://www.phpclasses.org/pop3class
--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
Jul 17 '05 #3
Am Sun, 12 Jun 2005 15:40:50 +0200 schrieb Peter Chant
<pe**@petezilla.co.uk>:
Hanjo Grüßner wrote:
Hello,

I'm not shure wether it's OT or not.


Possibly as you don't need php.

Are you running linux/unix/bsd?


Hello,

AFAIK my 'hired' webserver runs on Linux. So I will have to ask my
provider, I think.

Greetings

Hanjo

--
Software & Seminar-Kontor Hans-Joachim Grüßner
Glasholz
D-24369 Waabs
http://www.gruessner.de
Jul 17 '05 #4
Am Sun, 12 Jun 2005 23:37:16 +0200 schrieb Manuel Lemos <ml****@acm.org>:
Hello,
That is easy. I do that all the time. Basically you need to assign a
certain address to a mailbox reachable by POP3. Then you keep polling
the mailbox periodically until a new message reaches there to be
redistributed to your mailing list.


Thanks, that could be a method.

(Even if I wanted my server to that automatically)

I will try that.

Greetings

Hanjo


--
Software & Seminar-Kontor Hans-Joachim Grüßner
Glasholz
D-24369 Waabs
http://www.gruessner.de
Jul 17 '05 #5
Peter Chant wrote:
Hanjo Grüßner wrote:
I want to use an eMail as a trigger to start a program.


Are you running linux/unix/bsd?


If you said yes above and are running sendmail look up aliases.

You can create simple mailing lists or feed the email into a script /
program.


May require root access and can be dangerous if not done right.

I use procmail to invoke my PHP scripts from the mail feed.

C.
Jul 17 '05 #6
Am Sun, 12 Jun 2005 23:37:16 +0200 schrieb Manuel Lemos <ml****@acm.org>:

That is easy. I do that all the time. Basically you need to assign a
certain address to a mailbox reachable by POP3. Then you keep polling
the mailbox periodically until a new message reaches there to be
redistributed to your mailing list.


Hello Manuel,

and thanks. Your classes are running very well and are fine documented.

But, sorry, how do I poll ?

Greetings from the sunny shores of the baltic sea ;-)

Hanjo

--
Software & Seminar-Kontor Hans-Joachim Grüßner
Glasholz
D-24369 Waabs
http://www.gruessner.de
Jul 17 '05 #7
Manuel Lemos wrote:
Hello,

on 06/12/2005 08:22 AM Hanjo Grüßner said the following:

I want to use an eMail as a trigger to start a program.

E.g. an eMail-Group: any group-member sends an eMail to a
group-e-adress an the Mail is dispatches automatically to all members.

I know there are services like yahougroups who do exactly this, but I
wonder wether it's possible to do something like this by my own.

Further purposes could be to trigger any program on a webserver by a
special trigger-eMail.


That is easy. I do that all the time. Basically you need to assign a
certain address to a mailbox reachable by POP3. Then you keep polling
the mailbox periodically until a new message reaches there to be
redistributed to your mailing list.

You may want to use this POP3 class for fetching your messages.

http://www.phpclasses.org/pop3class

Thanks for this. I've been playing with it for a couple of hours. I've
always wanted to automatically verify new users to a mail list I
created. I'm sure you know what I mean. When they sign up I send an
automated email which they must respond to (leaving the subject
intact). This is going to work great (using cron to poll).

Have you any clever method for pulling lines out of the headers array?
Using explode at the :'s will not work because of the Date line (time
contains :'s), so I do this:
(just curious to know if there is a simpler way to do it)

for ($i=0; $i<count($headers); $i++)
{
// find first colon in the header line
$breakpos = strpos($headers[$i], ':');

// header field = substring from 0th character to breakpos
$field = substr($headers[$i], 0, $breakchar);

// set field = substring from breakpos to end of string
switch ($field)
{
case 'Date':
$date = substr($headers[$i], $breakpos);
break;
case 'From':
$from = substr($headers[$i], $breakpos);
break;
case 'To':
$to = substr($headers[$i], $breakpos);
break;
case 'Subject':
$subject = substr($headers[$i], $breakpos);
break;
}
}

I'm not going to bother with the "Received" fields.

Thanks, Manuel. You have lots of class ô¿Ô¬

--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*****************************
Jul 17 '05 #8
Hello,

on 06/13/2005 05:43 PM Chuck Anderson said the following:
I want to use an eMail as a trigger to start a program.

E.g. an eMail-Group: any group-member sends an eMail to a
group-e-adress an the Mail is dispatches automatically to all members.

I know there are services like yahougroups who do exactly this, but
I wonder wether it's possible to do something like this by my own.

Further purposes could be to trigger any program on a webserver by a
special trigger-eMail.


That is easy. I do that all the time. Basically you need to assign a
certain address to a mailbox reachable by POP3. Then you keep polling
the mailbox periodically until a new message reaches there to be
redistributed to your mailing list.

You may want to use this POP3 class for fetching your messages.

http://www.phpclasses.org/pop3class

Thanks for this. I've been playing with it for a couple of hours. I've
always wanted to automatically verify new users to a mail list I
created. I'm sure you know what I mean. When they sign up I send an
automated email which they must respond to (leaving the subject
intact). This is going to work great (using cron to poll).

Have you any clever method for pulling lines out of the headers array?
Using explode at the :'s will not work because of the Date line (time
contains :'s), so I do this:
(just curious to know if there is a simpler way to do it)

Sure, strtok($line,": "); to pick the header name, and then strtok("");
to pick the header value . Just keep in mind that header line that start
with space or tab are continuation of previous header line value.

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
Jul 17 '05 #9
Manuel Lemos wrote:
Hello,

on 06/13/2005 05:43 PM Chuck Anderson said the following:

I want to use an eMail as a trigger to start a program.

E.g. an eMail-Group: any group-member sends an eMail to a
group-e-adress an the Mail is dispatches automatically to all members.

I know there are services like yahougroups who do exactly this, but
I wonder wether it's possible to do something like this by my own.

Further purposes could be to trigger any program on a webserver by a
special trigger-eMail.

That is easy. I do that all the time. Basically you need to assign a
certain address to a mailbox reachable by POP3. Then you keep polling
the mailbox periodically until a new message reaches there to be
redistributed to your mailing list.

You may want to use this POP3 class for fetching your messages.

http://www.phpclasses.org/pop3class

Thanks for this. I've been playing with it for a couple of hours. I've
always wanted to automatically verify new users to a mail list I
created. I'm sure you know what I mean. When they sign up I send an
automated email which they must respond to (leaving the subject
intact). This is going to work great (using cron to poll).

Have you any clever method for pulling lines out of the headers array?
Using explode at the :'s will not work because of the Date line (time
contains :'s), so I do this:
(just curious to know if there is a simpler way to do it)

Sure, strtok($line,": "); to pick the header name, and then strtok("");
to pick the header value . Just keep in mind that header line that start
with space or tab are continuation of previous header line value.

Thanks, once again. I'd never used strtok. I understand how it works
and I will probably rewrite some other scripts of mine to use it.

--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*****************************
Jul 17 '05 #10
Hanjo Grüßner wrote:
Am Sun, 12 Jun 2005 23:37:16 +0200 schrieb Manuel Lemos <ml****@acm.org>:
That is easy. I do that all the time. Basically you need to assign a
certain address to a mailbox reachable by POP3. Then you keep polling
the mailbox periodically until a new message reaches there to be
redistributed to your mailing list.


Hello Manuel,

and thanks. Your classes are running very well and are fine documented.

But, sorry, how do I poll ?

Greetings from the sunny shores of the baltic sea ;-)

Well I can tell you what I am going to do. Call it from a cron job.

Und Grüße aus Colorado, ... from the foot of the Rocky Mountains.

--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*****************************
Jul 17 '05 #11
Am Tue, 14 Jun 2005 06:43:47 +0200 schrieb Chuck Anderson
<we************@seemy.sig>:


But, sorry, how do I poll ?

Greetings from the sunny shores of the baltic sea ;-)

Well I can tell you what I am going to do. Call it from a cron job.

Und Grüße aus Colorado, ... from the foot of the Rocky Mountains.


Hello Chuck,

unfortunately there is no possibility for a cronjob on my webserver.
Is there no other possibility ?

Greetings from the seaside to the mountains

Hanjo

--
Software & Seminar-Kontor Hans-Joachim Grüßner
Glasholz
D-24369 Waabs
http://www.gruessner.de
Jul 17 '05 #12

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

Similar topics

4
by: Bill | last post by:
Is it possible to somehow activate a page containing a php script by sending an email to a mailbox on the server? I have a script that sends out notification emails to an individual. He wants to...
2
by: eczino | last post by:
I currently have a web form posting back to a SQL table using a Stored Procedure. Part of this SP is that it pulls data from another table and inserts a new row into the registration table. I...
6
by: Mary | last post by:
We are developing a DB2 V7 z/OS application which uses a "trigger" table containing numerous triggers - each of which is activated by an UPDATE to a different column of this "trigger" table. When...
0
by: JohnO | last post by:
Thanks to Serge and MarkB for recent tips and suggestions. Ive rolled together a few stored procedures to assist with creating audit triggers automagically. Hope someone finds this as useful as...
2
by: Simon Harvey | last post by:
Hi chaps, My company runs a website that allows users to sign up to a seven day trial of a software product. What we would like to happen is, about three or four days after the trial expires a...
9
by: Ots | last post by:
I'm using SQL 2000, which is integrated with a VB.NET 2003 app. I have an Audit trigger that logs changes to tables. I want to apply this trigger to many different tables. It's the same trigger,...
1
by: experience4me | last post by:
Hello, I need to have access send an automatic email based on a trigger. The trigger will be a date plus 7 or 30 days. Is this possible. I know some Visual basic. Thanks...
5
by: jith87 | last post by:
hi all, i need to call a proceedure for sending email by setting up a "INSERT AFTER" trigger for a table.i need to pass the mail id as a parameter to the procedure for sending email. that...
2
by: yprashant | last post by:
Hi guys, I have a databae in MYSQL, ver 5.1, I am supposed to fire a trigger when a row in table reaches certain value. The trigger is supposed to send an email to all the users in database. can u...
0
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...
0
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,...
0
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...
1
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
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.