+ Reply to Thread
Results 1 to 3 of 3

Thread: Help needed on SMTP relay

Hybrid View

  1. #1
    Join Date
    May 2006
    Posts
    2

    Question Help needed on SMTP relay

    Hi there,
    I have been trying to use formmail.php to an html contactus form. But I am facing problem receiving mails from the form.

    Before I proceed further, my ISP has forwarded me that for an smtp relay use this : smtpout.secureserver.com (not exactly just to avoid any misuse). I tried adding this here:

    $PEAR_SMTP_HOST = "smtpout.secureserver.com";
    $PEAR_SMTP_PORT = 25;
    $PEAR_SMTP_USER = "";
    $PEAR_SMTP_PWD = "";

    (doesn't require user and pwd)

    but I get this error on testing below testalert option:
    http://mydomain.com/formmail.php?testalert=1
    it shows as: FAILED to send alert message. Check your server error logs.

    I am using this for other site which is hosted on a linux server but the current page which I need is hosted on a windows server.

    Using above method I get another error after SUBMIT form:
    Fatal error: domail(): Failed opening required 'Mail.php' (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\mydomain.com\httpdocs\formmail.php on line 4930

    Please suggest me what shall I do to use formmail now.
    Appreciate someone's help. Thank You!

  2. #2
    Join Date
    May 2006
    Posts
    2

    Default Re: Help needed on SMTP relay

    ok. one thing here, I just did the following:

    $TARGET_EMAIL = array(^me@mydomain\.com$);

    I was missing ^ in the Target email. Well, but the error on testalert is still there. Oh yes, one more thing when I try removing pear smtp thing, the form has started going to error page. inspite filling all fileds its not taking in. Further, if I use pear I get following error now after correcting the Target email:

    Fatal error: domail(): Failed opening required 'Mail.php' (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\mydomain.com\httpdocs\formmail.php on line 4930

    Appreciate your help in executing formmail.php. Thank You!

  3. #3
    Join Date
    Jul 2005
    Posts
    175

    Default Re: Help needed on SMTP relay

    for using formmail on a windows server or any other server you do not have to add any smtp stuff.. or something like that, at least that's my opinion
    cause it's only a script which uses email sending stuff included in php or somehow like that (e.g. by using a perl script you need something like sendmail or else to send mails, in php that's not required, because it has its own adequate one) ... I think I wrote it a bit confusing or maybe even shit

    in short:
    the only difference by using a windows server is that you've to quote your REAL_DOCUMENT_ROOT differently ('/' '\')
    therefore read the instruction inside formmail.php (version 7.09 about line 3000-3024)
    the rest should work as normal

+ 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. Unable to relay
    By abonnell in forum FormMail Subscription Support
    Replies: 5
    Last Post: 15-Jan-2005, 06:31 AM
  2. SMTP delivery confirmation
    By matty in forum FormMail Subscription Support
    Replies: 5
    Last Post: 08-Dec-2004, 11:52 PM
  3. Creating mail object using Mail::factory ("smtp", ....) and FormMail
    By stingray in forum FormMail Subscription Support
    Replies: 1
    Last Post: 13-Jul-2004, 10:27 PM
  4. help needed with values
    By aussieincanada in forum FormMail Subscription Support
    Replies: 3
    Last Post: 28-May-2004, 08:12 AM
  5. SMTP Server Authentication
    By Striker in forum FormMail Subscription Support
    Replies: 5
    Last Post: 04-May-2004, 12:40 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