Welcome Guest, Not a member yet? Register   Sign In
How to make email piping code work in CI controller
#1

[eluser]Zac G.[/eluser]
Hi folks,

I am trying to use information from an email in a controller.

This is the basic code I am working with:

Code:
#!/usr/bin/php -q
<?php

$fd = fopen("php://stdin", "r");
$email = "";
while (!feof($fd))
{
   $email .= fread($fd, 1024);
}
fclose($fd);
          
//Then I can do what I want with the $email variable
?>

Any suggestions on how I can add this into a controller? Or is there a better way to pipe an email straight to a controller function?

Cheers,
Zac


Messages In This Thread
How to make email piping code work in CI controller - by El Forum - 12-05-2009, 07:47 PM
How to make email piping code work in CI controller - by El Forum - 12-06-2009, 06:05 AM
How to make email piping code work in CI controller - by El Forum - 12-06-2009, 11:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB