Community Discussions and Support
Piping to a PHP file for an inbox that doesn't exist

[quote user="syndrical"]

What I'm trying to achieve is the following example:

User A has an account in the system but doesn't have an email address. When an email comes in, I'd like a PHP file to analyze the email & if the user is in the database, then store pieces of the email in the database. I already have the code for the PHP file but how do I get the file to run when an email comes in? Currently Mercury sees that the user doesn't have an inbox and says the email is undelivered. How can I get around this?

I've tried a policy but it doesn't seem to work.  

[/quote]

For a policy to work the email first has to be accepted as valid for the server. Why can't the user have a proper mailbox on the server?

[quote user="syndrical"] <P>What I'm trying to achieve is the following example: User A has an account in the system but doesn't have an email address. When an email comes in, I'd like a PHP file to analyze the email & if the user is in the database, then store pieces of the email in the database. I already have the code for the PHP file but how do I get the file to run when an email comes in? Currently Mercury sees that the user doesn't have an inbox and says the email is undelivered. How can I get around this?</P> <P><SPAN style="FONT-SIZE: 10pt">I've tried a policy but it doesn't seem to work.  </SPAN></P> <P>[/quote]</P> <P>For a policy to work the email first has to be accepted as valid for the server. Why can't the user have a proper mailbox on the server?</P>

What I'm trying to achieve is the following example:

User A has an account in the system but doesn't have an email address. When an email comes in, I'd like a PHP file to analyze the email & if the user is in the database, then store pieces of the email in the database. I already have the code for the PHP file but how do I get the file to run when an email comes in? Currently Mercury sees that the user doesn't have an inbox and says the email is undelivered. How can I get around this?

I've tried a policy but it doesn't seem to work.  

<p>What I'm trying to achieve is the following example: User A has an account in the system but doesn't have an email address. When an email comes in, I'd like a PHP file to analyze the email & if the user is in the database, then store pieces of the email in the database. I already have the code for the PHP file but how do I get the file to run when an email comes in? Currently Mercury sees that the user doesn't have an inbox and says the email is undelivered. How can I get around this?</p><p><span style="font-size: 10pt;">I've tried a policy but it doesn't seem to work.  </span></p>
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft