sir pannels
11-27-2004, 03:31 PM
Hey all :)
Have been planning a script for catching and forwarding email, I have planned it out and confirmed with others that it is indeed possible and the most viable method of doing what I need here, but I need some snipplets of code/structured english to get me started on the actual script.
The idea is , email can be sent to any alias at domain.com, so me@domain.com or stuff'@domain.com and so forth, so the actual alias is ignored initial as the mail is sent to the domain.com - what I need is for sendmail to catch that email and send it to a DB where the primary key will be the alias.
So for example if you were to send an email to jimmy@domain.com the script would take the email message, sender etc and INSERT INTO db WHERE alias = jimmy.
Now the database qry and formatting I can do, the bit I need help getting started with is the code to catch the email and send the results to a script for me to run insert qry etc.
Anyone on my level here or did that WHOOSH over your head like it did mine the first time I discussed it? :)
Thanks,
P
Have been planning a script for catching and forwarding email, I have planned it out and confirmed with others that it is indeed possible and the most viable method of doing what I need here, but I need some snipplets of code/structured english to get me started on the actual script.
The idea is , email can be sent to any alias at domain.com, so me@domain.com or stuff'@domain.com and so forth, so the actual alias is ignored initial as the mail is sent to the domain.com - what I need is for sendmail to catch that email and send it to a DB where the primary key will be the alias.
So for example if you were to send an email to jimmy@domain.com the script would take the email message, sender etc and INSERT INTO db WHERE alias = jimmy.
Now the database qry and formatting I can do, the bit I need help getting started with is the code to catch the email and send the results to a script for me to run insert qry etc.
Anyone on my level here or did that WHOOSH over your head like it did mine the first time I discussed it? :)
Thanks,
P