Jump to content

shawngoldw

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

shawngoldw's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. :0: * ^.* | /usr/local/bin/script.php Would this work to match everything? My reasoning is . for every character and * for 0 or more matches Thanks for all the help
  2. ohhh the second line is a regular expression.... thought it looked familiar. so if I want it to run for every email I just leave out the second line? and pardon my lack of knowledge, but what would the "standard in" be?
  3. Thank you very much. I have a couple questions. what does the second line do? When you say "pipe an email to a php script" do you mean that the email gets passed into the script? or just that the php script gets called? If it's the first case, how do you access the passed in email from within php?
  4. Hello, I need to run a php script whenever my server receives email. It has been recommended to me to use procmail to trigger the php script. I have zero experience with procmail and need some guidance I just need a simple procmail script which will run a php script every time an incoming email is received. If someone could either show me the few lines I need or point me where to find them it would be greatly appreciated. Thanks, Shawn
  5. Try require_once "Mail.php";
  6. Hello, I am setting up a mail system for my website where I need to manually parse and distribute incoming emails to my server. Currently I have a php script which navigates my Maildir/new directory and parses the emails 1 by 1 to forward them to a relevant list of members based on the address the emails are to. I have used the PEAR email package to send the messages out through the gmail smtp servers but am having some trouble getting attachments to work. I am using Mai/mime.php from PEAR to try to attach files. I can attach files with addAttachment() but my problem is that when reading an incoming email i don't have a file to attach, but I rather have to parse the email to get the file. I am not sure how to do this. If anyone could help me figure out how to parse the attachments in a Maildir email and attach it to a new email through PEAR, it would be greatly appreciated.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.