Page 2 of 2

Re: error generating report - mail

Posted: Tue May 24, 2011 1:12 am
by shane
You have three options if you want to turn http authentication back on:

1) Get all users to download the reports manually to their desktops and attach the file in your email program.
2) Contact http://www.nusoftware.com.au for commercial support on this matter.
3) Edit the nuBuilder source code yourself and add the following:

Filename reportemail.php

at line 83 the following two lines

Code: Select all

curl_setopt($ch, CURLOPT_USERAGENT, 'your user name goes here');
curl_setopt($ch, CURLOPT_USERPWD, 'your password goes here');
Please note I have not tested the above code.

Re: error generating report - mail

Posted: Wed May 25, 2011 1:50 pm
by johan
Shane,

I've got it working with this code added at line 83

Code: Select all

curl_setopt($ch, CURLOPT_USERPWD, "username:pwd");
replace username and pwd by a username and password from your authetication
I didn't needed USERAGENT.

Thanks for your help. Whitout it I wouldn't be able to solve this problem.

Johan

Re: error generating report - mail

Posted: Thu May 26, 2011 8:16 am
by shane
that's great news 8-)