Page 1 of 1
mail without smtp
Posted: Sat Jul 07, 2012 9:25 am
by johan
Hi,
Is it in the new build still possible to mail without smtp settings just using mail()?
Now I get a message to contact the admin. I suppose I have to change some settings.
Johan
Re: mail without smtp
Posted: Sun Jul 08, 2012 12:04 pm
by johan
Hi,
Now I've changed config.php to mail. Now my mail is sending but the document does'nt open.
I get this error
Authorization Required
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
With previous version of Nubuilder the mail function worked fine.
Am I missing a setting?
Johan
Re: mail without smtp
Posted: Mon Jul 09, 2012 2:08 am
by pickle_jimmy
Hi Johan,
As a part of our efforts to make nuBuilder more secure and easier for people to set up; nuBuilder no longer needs the Server on which it resides to run an SMTP service in order to send emails. This being said, nuBuilder still requires some kind of SMTP server.
Quote from the WIKI:
==================
Note: The variables $NUMailMethod, $NUSMTPHost, $NUSMTPUsername, $NUSMTPPassword, $NUSMTPUseSSL, and NUSMTPPort are no longer used in nuBuilder. The nuSendEmail() function inside nuBuilder reads these settings from the zzsys_setup table. NuBuilder requires you to enter your SMTP Server information in order to send emails.
Eg. in order to have GMail be your SMTP server, you would enter the following in the Email Settings on the Setup Tab of nuBuilder.
Auth SMTP username:
user@gmail.com
Auth SMTP password: myPassword
Auth SMTP host: smtp.gmail.com
Auth SMTP From Address:
user@gmail.com
Auth SMTP From Name: Company Email
Auth SMTP port: 465
Auth SMTP use SSL: YES
So, the easiest way to get email working is to go to
http://www.google.com and set up a gmail account. Log in to this account and send/receive a few emails, then use the above info (with your new username/password) in nubuilder.
The other benefit with using this method is that ALL emails sent from nuBuilder will be in the sent items of the GMail Account.
Hope this helps
Pickle Jimmy
Re: mail without smtp
Posted: Mon Jul 09, 2012 9:15 am
by johan
Pickle Jimmy,
Now I'm using smtp (even mail worked) but the problem is that the receiver can't open the attach.
There we get the message:
Authorization Required
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
The permissions on temppdf are 775.
In previous version the mail function worked. On update I only replaced productionnu2 and run Schema Changes
any idea what's causing the problem?
Johan
Re: mail without smtp
Posted: Tue Jul 10, 2012 6:02 am
by pickle_jimmy
Hi Johan,
It may not be a Linux directory permission, it could be an Apache permission. A Google search of your particular error points at using an htaccess file to set the permissions for stopping access (or restricting access) to a particular directory. Is there an Apache permission that is stopping php accessing the temppdf directory?
Cheers
PJ
Re: mail without smtp
Posted: Tue Jul 10, 2012 7:58 pm
by johan
PJ,
We use Ldap authentication on our server. When we turn it of everything works fine. So it's not a Nubuilder problem.
Thanks again,
Johan