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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

send email with authentication?

Thread began 6/27/2017 11:40 am by tony | Last modified 7/07/2017 9:28 pm by Ray Borduin | 124 views | 14 replies |

tony

send email with authentication?

Hi all,
I have migrated a website to a new host and now prenotation emails are not going out any more.
The server administrator says it cannot allow emails using php sendmail function.
So, I'm trying to use the PEAR mail using SMTP.
I collected all data needed to fill the mail object settings but I'm not sure about the PEAR path.

- username
- password
- server (mail.myserver.com)
- port 25

The server administrator sent me a php_info extract and here it is:

include_path .:/usr/share/php:/usr/share/pear (see attachment)

What should I put in the PEAR path field?
Is it right to put ".:/usr/share/php:/usr/share/pear" there?

I tried to put this value straight in the pear path field but I get a system error 500 when I submit the form.

Or perhaps, have I to ask the server administrator to install pear on the website directory?

TIA

tony

Sign in to reply to this post

Ray BorduinWebAssist

Have you tried leaving that field blank? If it is left blank it should defer to the server-configured path which should be correct.

Sign in to reply to this post

tony

Originally Said By: Ray Borduin
  Have you tried leaving that field blank? If it is left blank it should defer to the server-configured path which should be correct.  


Yes, sending email by using php mail is blocked by security policy.
I must use SMTP with authentication.
Tony

Sign in to reply to this post

tony

I tried to leave the PEAR path blank but stil I get an error 500 (page not working).
How can I solve this?
Tony

Sign in to reply to this post

tony

Is there something I can ask to the hoster?
I verified the pear installation issuing a pear_check.php page with this code:

<?php
require_once('System.php');
var_dump(class_exists('System', false));
?>

and I get "bool(true)" message that says the pear installation is ok.

Sign in to reply to this post

Ray BorduinWebAssist

PEAR is not installed on that server.

I used phpinfo() and PEAR is not listed as an installed component.

Sign in to reply to this post

tony

Originally Said By: Ray Borduin
  PEAR is not installed on that server.

I used phpinfo() and PEAR is not listed as an installed component.  


Hi Ray,
thanks for your reply.
But what about this code:

<?php
require_once('System.php');
var_dump(class_exists('System', false));
?>

The pear website says that if you see the "bool(true)" message, it means PEAR is installed corretly.
What should I get in the phpinfo() when PEAR is installed? I need this info so that I can pass it to the hoster that will install PEAR, if needed.

Thanks again.

tony

Sign in to reply to this post

Ray BorduinWebAssist

Maybe PEAR is installed, but the mail component in PEAR wasn't installed?

Can you ask your hosting provider to install:
$ cd /Applications/mampstack-*/php/bin
$ ./pear install mail

Once it is installed there should be a file named: Mail.php in the pear installation folder. I listed the contents of the folder and that file isn't there currently.

Sign in to reply to this post

tony

Originally Said By: Ray Borduin
  Maybe PEAR is installed, but the mail component in PEAR wasn't installed?

Can you ask your hosting provider to install:
$ cd /Applications/mampstack-*/php/bin
$ ./pear install mail

Once it is installed there should be a file named: Mail.php in the pear installation folder. I listed the contents of the folder and that file isn't there currently.  


Thanks Ray,
I provided your info to the hoster and now I'm waiting for a reply.
Thanks.

Tony

Sign in to reply to this post

tony

Hi Ray,
the hoster said he has installed the pear mail component.
I tried the mail with pear email setup but it's still not working.
I tried to send using the "mail" object, but emails are not sending too.

Here are the settings I used in UniversalMail:

- email object: PEAR Mail using SMTP
- character set:default
- authenticate: CHECKED
- ... other data in private message.

What else can I do to make it work?
TIA again.

Tony

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...