Steps for forwarding email to php script

October 11, 2010 at 9:44 am 1 comment

Recently I have worked in a project which requires processing email using php script before sending into the email user.

We used forward pipe option in the cPanel for sending the email to a php script for doing the required email processing.

I came to know that we need to follow below things.

– Put #!/usr/local/bin/php -q before <?php in the php script.

– The php file should have chmod 755 permissions, otherwise we will get "local delivery failed" error message.

– We may need to use MIME decoding.

Advertisements

Entry filed under: Software. Tags: , .

Use our Social Bookmarking feature to save your time. Sourceforge.net for sharing open source projects

1 Comment Add your own

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Tweets

October 2010
M T W T F S S
« Sep   Nov »
 123
45678910
11121314151617
18192021222324
25262728293031

Blog Stats

  • 26,673 hits

QualityPoint on Twitter

Error: Twitter did not respond. Please wait a few minutes and refresh this page.


%d bloggers like this: