Koozali.org: home of the SME Server

Allowing Email Opt-Out through

Offline russs

  • ****
  • 77
  • +0/-0
Allowing Email Opt-Out through
« on: September 28, 2006, 05:07:48 PM »
I'm sure this has been answered before but I can't find anything quite like this request.

We use Sugar CRM based at our work inside our Firewall and with no outside access for all our Contacts. We can also mail out through it and send out Campaign Mail Lists. We add an 'Opt-Out' link to each Campaign mail. Unfortunately, because the Sugar Server is inside our Firewall we have to do a bit of work to allow the opt-out to work. Therefore, I have created a publically visible iBay on our SME Webserver and put the removeme.php link there that is needed for Sugar to opt you out.

So, when the client gets the mail and clicks on the removeme.php link this sends the message back to the SME server and it should pass the details on internally to the Sugar server.

However, the link never gets passed the SME server. Looking in the Messages log I see this:

httpd: PHP Warning:  file_get_contents(): URL file-access is disabled in the server configuration in /home/e-smith/files/ibays/sugaremail/files/redirect.php on line 17

httpd: PHP Warning: file_get_contents(http://*server*/*domain*/sugaremail/removeme.php?identifier=4ec18366-4db4-9465-c7df-451bcf75a8c5): failed to open stream: no suitable wrapper could be found in /home/e-smith/files/ibays/sugaremail/files/redirect.php on line 17

What does this mean? I am sure I have the files with the right permission as I can access the iBay from outside work.

Line 17 referred to above reads like this:

$captured = file_get_contents( $redirecturl );

Is the 'file_get_contents' not allowed by my SME configuration? It is in Private Server mode with a Router doing the job of firewall.

Am I barking up the wrong tree and that in fact there is no reason this shouldn't work if the idiot setting it up had done it right (me)!

Thanks Guys

Russ
...

Offline russs

  • ****
  • 77
  • +0/-0
Allowing Email Opt-Out through
« Reply #1 on: September 29, 2006, 05:52:15 PM »
Anybody got any idea on this please?
...

Offline russs

  • ****
  • 77
  • +0/-0
Allowing Email Opt-Out through
« Reply #2 on: September 29, 2006, 05:52:47 PM »
Anybody got any idea on this please?
...

Offline russs

  • ****
  • 77
  • +0/-0
Allowing Email Opt-Out through
« Reply #3 on: September 29, 2006, 05:53:55 PM »
Sorry ,got posted twice for some reason...


 :D
...

Offline russs

  • ****
  • 77
  • +0/-0
Allowing Email Opt-Out through
« Reply #4 on: October 11, 2006, 11:44:25 AM »
Still no one can help?
...

Offline smeghead

  • *
  • 563
  • +0/-0
Allowing Email Opt-Out through
« Reply #5 on: October 12, 2006, 06:30:51 AM »
.. maybe CGI is not turned on for this ibay ..

or

.. put the PHP file in the HTML directory not the files directory ..
..................

Offline russs

  • ****
  • 77
  • +0/-0
Allowing Email Opt-Out through
« Reply #6 on: October 12, 2006, 10:54:45 AM »
Thanks,

I'll give it a go.
...