PHP Receive Mail and Attachment

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
octavarium
Forum Newbie
Posts: 1
Joined: Tue May 31, 2005 6:25 pm

PHP Receive Mail and Attachment

Post by octavarium »

I'm having trouble figuring out how I would even get started on code where you could email a file to your account, which would trigger a script and the script would get info from the email, get the attachment and put it in a directory. Is it possible to coordinate incoming mail with scripts?
User avatar
ddragas
Forum Contributor
Posts: 445
Joined: Sun Apr 18, 2004 4:01 pm

Post by ddragas »

How about upload form. It is much easyer to make upload form and control files that have been uploaded?
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

It's possible, but i would'nt use php for it.

1-) Fetching the e-mail can be done with "fetchmail"
2-) Use "procmail" to handle the e-mail


I think http://pm-doc.sourceforge.net/pm-tips-body.html is a good starting point for finding a workign solution ;)
Post Reply