Welcome to the nuBuilder Forums!

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

mail without smtp

Post Reply
johan
Posts: 399
Joined: Sun Feb 27, 2011 11:16 am
Location: Belgium
Been thanked: 3 times

mail without smtp

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

Re: mail without smtp

Unread post 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
pickle_jimmy
Posts: 38
Joined: Mon Jul 25, 2011 4:00 am

Re: mail without smtp

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

Re: mail without smtp

Unread post 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
pickle_jimmy
Posts: 38
Joined: Mon Jul 25, 2011 4:00 am

Re: mail without smtp

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

Re: mail without smtp

Unread post 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
Post Reply