close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Authentication in UE

Thread began 5/16/2009 1:34 pm by Stan | Last modified 6/08/2009 3:00 pm by Steve | 2808 views | 10 replies |

Stan

Authentication in UE

I'm baffled. I'm assuming that UE will use any smtp server? But 99% of smtp servers now require authentication. But I can't find any place in UE to do the authentication. I can't find any mention of it in the documentation. I can't find any questions on the forum mentioning it. Am I way off base here? Do I not understand how UE works?

OK....more research NOT on the webassist.com. I need to use PEAR for authentication with PHP on SMTP. So why isn't this documented anywhere? It appears that the "powerstore" solution doesn't use PEAR? Why would that be when 99% are going to need that solution? Go figure.

Sign in to reply to this post

Ray BorduinWebAssist

99% of web servers using php actually don't require authentication. In fact I haven't run into a popular hosting company that does. Where do you host?

Usually they will set up php with a default smtp server and use IP restrictions to allow requests from the web server so no additional security is required.

Sign in to reply to this post

Stan

Ray, you're a pretty sharp cookie. lol. I'm using ucvhost.com because they are cheap. Their equipment is in Bombay as is their support which can be EXTREMELY frustrating. I have found out that the mail server is hosted on another server and no they didn't set it up with ip restrictions to allow the mail transport to access it. I'm going to go into a little detail here that I know that you know but anyone else who doesn't won't have to research all of this.

Hosting companies typically require authentication for smtp server from outside clients because of the proliferation of spam. However in the case of a web application which is running on the same server or server farm as the smtp server the authentication is usually not required.

Php doesn't provide native authentication. It uses the mail() function with up to 5 arguments. The mail server isn't defined in the arguments. It is defined in the php.ini which is located on the hosting server and probably isn't available for edit. In my case php.ini defined smtp=localhost which of course wasn't the location of the server so it failed. And actually for clarity the mail() function just passes the mail to the Mail Transfer Agent (MTA) which in turn communicates with the mail server.

The solution for me it appears would be one of three.
1. Pick a different host.
2. Convice ucvhost to properly set up the mail server as Ray suggested.
3. Use a different vehicle such as PEAR which is supported by universal email but requires that the host has installed the PEAR package.

Ray can you tell me what the "path to PEAR" parameter in UE should look like? Is this PEAR at localhost or should it be PEAR on the mail server? URL ok or does it need IP? or maybe localhost? Thanks for your help!

Sign in to reply to this post

Ray BorduinWebAssist

It is the location of the mail.php file that is installed with PEAR. In most cases it can be blank because when Pear is installed properly it can almost always be blank... 99% of the time blank but who knows with your host ;)

Sign in to reply to this post

Steve

Originally Said By: Ray Borduin
  It is the location of the mail.php file that is installed with PEAR. In most cases it can be blank because when Pear is installed properly it can almost always be blank... 99% of the time blank but who knows with your host ;)  




I just installed PEAR (PEAR-1.8.1) and there is no "mail.php" file anywhere in this latest install. Does this now mean recoding the WA extension to use pear.php or pear5.php?

Sign in to reply to this post

Ray BorduinWebAssist

Just leave that field blank and see what happens. Do you get an error? What is the error?

Sign in to reply to this post

Steve

Originally Said By: Ray Borduin
  Just leave that field blank and see what happens. Do you get an error? What is the error?  



Same error without the path defined in UE regarding the path to PEAR:

""


Warning: require_once(Mail.php) [function.require-once]: failed to open stream: No such file or directory in E:\*****\WA_Universal_Email\PEAR_Mail_using_SMTP_PHP.php on line 115

Fatal error: require_once() [function.require]: Failed opening required 'Mail.php' (include_path='.;d:\php\includes;D:\PHP\PEAR') in E:\****\WA_Universal_Email\PEAR_Mail_using_SMTP_PHP.php on line 115


""

Note, that UE is looking for the referenced mail.php, which does not exist in pear

Sign in to reply to this post

Ray BorduinWebAssist

Most samples I see still reference the need for that file for pear to work:

et073006.htm

Usually pear does have a file named mail.php. Your version must use another definition file. Are you sure pear was installed properly? what happens when you remove the line of code causing errors?

Sign in to reply to this post

Steve

Turns out Mail is a separate module install for PEAR, This as well as the smtp NET modules have been installed and now there is a mail.php file. But the next expectation from UE is :

Fatal error: require_once() [function.require]: Failed opening required 'D:\php\pearMail.php' (include_path='.;d:\php\PEAR') in
\WA_Universal_Email\PEAR_Mail_using_SMTP_PHP.php on line 115


good ol pearMail.php.... Not installed in the latest module installs.

List of successful PEAR modules that are installed:

INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET:
=========================================
PACKAGE VERSION STATE
Archive_Tar 1.3.2 stable
Console_Getopt 1.2.3 stable
Mail 1.1.14 stable
Net_SMTP 1.3.2 stable
Net_Socket 1.0.9 stable
PEAR 1.7.2 stable
Structures_Graph 1.0.2 stable


Also installed the latest version of PHP just for fun 5.2.9 on Windows server 2003

So everyone else has this pearMail.php file?

Sign in to reply to this post

Ray BorduinWebAssist

The file should be called mail.php.... What did you put as your pear path? Looks like it could be missing the trailing slash?

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...