Search found 4 matches

by bitt3n
Fri Feb 03, 2006 2:47 pm
Forum: PHP - Code
Topic: seeking optimal way to parse an email sent to my PHP script
Replies: 7
Views: 531

raghavan20 wrote:Why there are two bodies??
I wondered that myself. However I noticed that they are not exactly the same. The first has:

Content-Type: text/plain;

and the second has:

Content-Type: text/html;

I don't care about the html version, for what it's worth.
by bitt3n
Fri Feb 03, 2006 1:03 pm
Forum: PHP - Code
Topic: seeking optimal way to parse an email sent to my PHP script
Replies: 7
Views: 531

sounds good. here is an example of an unparsed email: http://findmoby.com/unparsed_mail.htm Everything after "MESSAGE UNPARSED: " is the $email variable that the script emailed back to my address. I attached 3 jpegs with this message, but I see only 2 in the unparsed message. I tried this ...
by bitt3n
Fri Feb 03, 2006 9:46 am
Forum: PHP - Code
Topic: seeking optimal way to parse an email sent to my PHP script
Replies: 7
Views: 531

sure, this is an example of what the parsed sections look like after I send an email to my present script (variable names in bold): http://www.filefarmer.com/2/bitt3n/example.html I want to isolate the e-mail address in the $from and $to variables (the recipient address is isolated in this example),...
by bitt3n
Thu Feb 02, 2006 11:18 pm
Forum: PHP - Code
Topic: seeking optimal way to parse an email sent to my PHP script
Replies: 7
Views: 531

seeking optimal way to parse an email sent to my PHP script

I am currently piping mail to a script that does a bit of parsing as per this article: http://www.devarticles.com/c/a/PHP/Incoming-Mail-and-PHP/1/ Email piped to the script gets recorded as $email. The script then parses it like this: http://www.filefarmer.com/2/bitt3n/example.html I want to parse $...