+ Reply to Thread
Results 1 to 3 of 3

Thread: PEAR settings does nothing

  1. #1
    Join Date
    Oct 2008
    Posts
    9

    Smile PEAR settings does nothing

    We are having problems getting formmail.php to work using pear. It works fine without it but we would prefer to specify an smtp host.

    I am using ?testalert=1 to test sending

    I have set $from_user with a valid email address

    I have set define("DEF_ALERT" with a valid email address

    $TARGET_EMAIL = array( allows for all the above email addresses

    under PEAR settings we have something along the lines of

    $PEAR_SMTP_HOST = "mail.host.com";
    $PEAR_SMTP_PORT = 25;
    $PEAR_SMTP_USER = "xxx";
    $PEAR_SMTP_PWD = "password";

    on submitting we get a blank page and no errors.

    I noticed a bug fix on 8.13 for PEAR error handling but upgrading to this has not changed this little problem for us.

    running phpinfo() on our server seems to indicate pear is installed

    include_path .:/usr/share/php5:/usr/share/php5/PEAR

    Appreciate any thoughts should something be obviously wrong, thanks alot.

    Thomas
    Last edited by ThomasW; 23-Mar-2009 at 11:22 AM. Reason: missed something

  2. #2
    Join Date
    Mar 2004
    Posts
    2,224

    Default Re: PEAR settings does nothing

    blank pages generally mean php has refused to execute the script and php is config'd to show the errors only in a server log file

    u can look for a file on ur website called "php_errors"....it might contain the info u need

    otherwise, try setting "display_errors" and "display_startup_errors" in php.ini (u can also do this in .htaccess)

    u need to know wot the error is so u can fix it.

  3. #3
    Join Date
    Oct 2008
    Posts
    9

    Default Re: PEAR settings does nothing

    Thanks for that, we found out what the problem was using your help. Apparently access permissions were not set correctly on the PEAR directory.

    Now that we are succesfully sending via PEAR, we are having problems sending to a BCC address.

    Ive found a couple of others with the problem on the forum but it seems to be unresolved.

    Ive tried to throw together a solution (using limited php knowledge and even less knowledge of how your code works) to hard code in my desired bcc address into the $to variable like so

    Code:
     
    
    line 4277 of formmail.php
    
    function SendCheckedMail
    
            $bcc = "mybccaddress@domain.com";
        	$to = $to.", ".$bcc;    
            return (DoMail($to,$subject,$mesg,$a_headers));
    mail is sent to the $bcc address but it is shown in the recipients list i.e. it is not really a blind copy.

    Does this mean it has somehow got into $a_headers?
    Last edited by ThomasW; 27-Mar-2009 at 03:28 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. PEAR Mail error: No From: address has been provided
    By Bill Buntain in forum Community Support
    Replies: 2
    Last Post: 26-Mar-2009, 03:03 PM
  2. can host settings prevent form from working?
    By Thelma in forum Community Support
    Replies: 5
    Last Post: 24-Jul-2007, 02:14 AM
  3. Error:Some mail_options settings are undefined
    By tsheffie in forum Community Support
    Replies: 1
    Last Post: 09-Jun-2006, 02:42 AM
  4. Problems with Pear
    By L.I.C.C. in forum FormMailEncoder/Decoder
    Replies: 21
    Last Post: 23-Nov-2005, 11:59 PM
  5. Did I enter the settings correctly?
    By nc555 in forum FormMail Subscription Support
    Replies: 3
    Last Post: 11-Aug-2005, 01:07 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts