Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23

Thread: Why wont it work on this server?

  1. #11
    Join Date
    Feb 2007
    Posts
    162

    Default Re: Why wont it work on this server?

    Well, its for sure a problem with the server sending email. I used the testmail.php and testmail2.php, and both failed. I sent an email to my host, but I don't know if I can count on them to do anything. I've had this same host for years, and am sorta tied into them unless I can find another host that has an email newsletter program like the one I use now. Oh well, I guess I'm kinda rambling on. Thanks for you help everyone.

  2. #12
    Join Date
    Feb 2007
    Posts
    162

    Default update

    Here is what my host said today:

    Code:
    Hi CHMOD;
    
    This particular PHP script appears to use the PHP sendmail binary but that
    program isn't available ... [The php.ini file settings you mentioned would
    be used by the sendmail binary.]
    
    You would need for your PHP script to send mail directly to the smtp server
    that is available on that server (or your own SMTP server that you normally
    use for yoursite.com.)
    
    As an example, if you check out the following WordPress plug-in, it has a
    PHP script which over-rides the usual call to the mail function (i.e. the
    sendmail binary) and sends it out directly.
    
    http://www.coffee2code.com/archives/...n-wpphpmailer/
    
    Here's the actual script (there is a link to it from the link above also):
    http://www.coffee2code.com/wp-plugins/wp-phpmailer.phps
    
    And you'll see a function in there called wp_mail that sends out an email
    directly through SMTP as opposed to using the sendmail binary (and most
    likely you could use a variation of this within the script you have.)
    
    Clear as mud? :)
    
    Take care,
    Host services
    Does this make any sense?
    Thanks,
    CHMOD

  3. #13
    Join Date
    Dec 2003
    Posts
    3,980

    Default Re: Why wont it work on this server?

    Hi,

    Gee, there is a lot of Hosting Providers (HPs) around that don't understand their own systems, isn't there?

    The HP is responsible for configuring and installing PHP on your server.

    Any PHP script sending mail, including Tectite FormMail, uses a standard PHP function called "mail".

    If PHP uses sendmail to implement the "mail" function, that's because the HP told it to!

    The script doesn't say "Hey, I'll use the sendmail binary". It uses the standard PHP "mail" function. If the HP has told the "mail" function to use the sendmail binary, there isn't anything a script can do about it.

    Having said that. FormMail also supports sending mail using the standard PHP PEAR classes.

    Look for the PEAR_ settings in the configuration section (near the end).

    Using these settings, and assuming your HP has installed the PEAR features, you can tell FormMail to use SMTP directly and, optionally, with authentication.

    Also, we do have plans to implement mail sending using PHPMailer too (since this seems to have become a popular way to send mail from PHP).
    Last edited by russellr; 02-Mar-2007 at 10:54 AM.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  4. #14
    Join Date
    Feb 2007
    Posts
    162

    Default Re: Why wont it work on this server?

    Well, PEAR aint gonna work for me. All I get is:

    Code:
    PHP Fatal error:  domail() [function.domail]: Failed opening required 'Mail.php' (include_path='.;c:\php4\pear') in d:\Domains\mysite.com\wwwroot\formmail.php on line 6377
    Im thinking about switching hosts, but I guess if you are working on the PHPmailer feature I might just wait. MY form works right now, but my form action directs to another server, which I think is rediculous!

    Anyways, I'm done for now... Thanks for your help and your great script.

  5. #15
    Join Date
    Mar 2007
    Posts
    3

    Default Re: Why wont it work on this server?

    I asked my hosting company and they do not support the PEAR feature :-( , but..

    if I add to the code the following two lines... it works!. Why would that be?

    ini_set("SMTP","mail.kbpixels.com"); // this being my server's SMTP outgoing server
    // yours could be smtp.yourdomain.com
    ini_set("smtp_port","25"); // you might have a different port number for SMTP



    Ricky
    Last edited by rickysch; 08-Mar-2007 at 05:44 PM.

  6. #16
    Join Date
    Feb 2007
    Posts
    162

    Default Re: Why wont it work on this server?

    Ricky,
    Where did you add this code?

  7. #17
    Join Date
    Mar 2007
    Posts
    3

    Default Re: Why wont it work on this server?

    I placed it right below define("DEF_ALERT"," .....

  8. #18
    Join Date
    Dec 2003
    Posts
    3,980

    Default Re: Why wont it work on this server?

    Hi,

    Your hosting provider should set this in the server's "php.ini" file.

    Individual scripts should not need to do this.

    I'm glad you found the answer, and thanks for posting the solution.

    This information will help us improve FormMail's handling of all the weird hosting providers out there!
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  9. #19
    Join Date
    Mar 2007
    Posts
    3

    Default Re: Why wont it work on this server?

    I am glad I could help and thank you so much for such great application. I'll start using it and definitelly will link to your site.

    Ricky

  10. #20
    Join Date
    Feb 2007
    Posts
    162

    Default Re: Why wont it work on this server?

    Quote Originally Posted by rickysch
    I asked my hosting company and they do not support the PEAR feature :-( , but..

    if I add to the code the following two lines... it works!. Why would that be?

    ini_set("SMTP","mail.kbpixels.com"); // this being my server's SMTP outgoing server
    // yours could be smtp.yourdomain.com
    ini_set("smtp_port","25"); // you might have a different port number for SMTP



    Ricky
    WOOHOOO! Man, you are a GENIUS! Totally worked for me. Thanks so much!!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Perfect... Except for (wont accept email outside my domain?)
    By justine in forum Community Support
    Replies: 3
    Last Post: 01-Sep-2008, 09:53 AM
  2. Cant get good url to work (after 6h work)
    By BadDevil in forum Community Support
    Replies: 8
    Last Post: 29-Jan-2007, 12:15 AM
  3. fault on the server ?
    By david_de in forum Bug Reports
    Replies: 6
    Last Post: 01-Sep-2006, 02:09 AM
  4. server error...?
    By kroggy in forum FormMail Subscription Support
    Replies: 1
    Last Post: 17-Nov-2005, 12:54 AM
  5. New Server
    By sectioni in forum FormMail Subscription Support
    Replies: 9
    Last Post: 21-Mar-2005, 02:07 AM

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
  •