Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

error generating report - mail

shane
Posts: 100
Joined: Mon Jun 15, 2009 10:04 am

Re: error generating report - mail

Unread post 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.
johan
Posts: 399
Joined: Sun Feb 27, 2011 11:16 am
Location: Belgium
Been thanked: 3 times

Re: error generating report - mail

Unread post 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
shane
Posts: 100
Joined: Mon Jun 15, 2009 10:04 am

Re: error generating report - mail

Unread post by shane »

that's great news 8-)
Post Reply