Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Formmail with smtp auth

  1. #1
    Join Date
    Mar 2012
    Posts
    6

    Default Formmail with smtp auth

    Hi, I am a complete newbie and have search but not found the answer I am looking for.

    I have edited the formail and aproximately on these lines have put in;

    Line 251: $TARGET_EMAIL = array(EMAIL_NAME."info@bon-voyage\.uk\.com$");
    Line 257: $SITE_DOMAIN = "http://www.bon-voyage.uk.com";

    Lines 481 to 484:

    $PEAR_SMTP_HOST = "mail.bon-voyage.uk.com";
    $PEAR_SMTP_PORT = 587;
    $PEAR_SMTP_USER = "info@bon-voyage.uk.com";
    $PEAR_SMTP_PWD = "*******";

    These are the only changes I have made.

    When I go to the live site at: http://www.bon-voyage.uk.com/book_li...GINALTEST.html and enter date and submit I get this error message:

    An error occurred while processing the form .

    Please contact us (bon-voyage.uk.com) directly since this form is not working .
    bon-voyage.uk.com apologizes for any inconvenience this error may have caused.

    My hosting company jodohost have made this comment: "Please make sure you have included all pear class files under domain root directory in order to work it correct" I do not have any other files in the download just the formmail.php and sample

    The error does not tell me anything, so I don not know what to look at.

    Can someone please advise:

    1) Have I made the necessary alterations or have I missed something?
    2) What is the error I am getting.
    Last edited by jimsaxton; 19-Mar-2012 at 04:26 PM. Reason: added comment from hosting company

  2. #2
    Join Date
    Jul 2011
    Posts
    45

    Default Re: Formmail with smtp auth

    Clearly your hosting organisation don't include PEAR in the deal you have with them. You need to use MIME only or install PEAR yourself. Personally I've never bothered with PEAR as all my forms appear to work quite happily without the extra bother.

  3. #3
    Join Date
    Mar 2012
    Posts
    6

    Default Re: Formmail with smtp auth

    Please since I am not a tecko. You state "You need to use MIME only". Does apply to when hosting company insists that there needs to be SMTP authorization?

    If MIME will solve my problem then please advise on how I set up and use MIME.

  4. #4
    Join Date
    Jul 2011
    Posts
    45

    Default Re: Formmail with smtp auth

    Using Formmail without PEAR is easier than including it.

    PHP Code:
                /* Help: http://www.tectite.com/fmdoc/pear_settings.php */
    $PEAR_SMTP_HOST "";
    $PEAR_SMTP_PORT 25;
    $PEAR_SMTP_USER "";
    $PEAR_SMTP_PWD ""
    I suggest you set up a new, vanilla-flavour version of Formmail, editing as little as you can get away with (see the help files) and get a basic version working. Then you can tweak as required.

  5. #5
    Join Date
    Mar 2012
    Posts
    6

    Default Re: Formmail with smtp auth

    Hi I have started with new ( vanilla-flavour version of Formmail) and just changed the code as I originally posted:

    Line 251: $TARGET_EMAIL = array(EMAIL_NAME."info@bon-voyage\.uk\.com$");
    Line 257: $SITE_DOMAIN = "http://www.bon-voyage.uk.com";

    Lines 481 to 484:

    $PEAR_SMTP_HOST = "mail.bon-voyage.uk.com";
    $PEAR_SMTP_PORT = 587;
    $PEAR_SMTP_USER = "info@bon-voyage.uk.com";
    $PEAR_SMTP_PWD = "*******";

    I did try without PEAR but that did not work and my hosting company told me to put in PEAR lines, and PEAR class files. I have been unable to ascertain what these PEAR class files are. Can anyone advise?

  6. #6
    Join Date
    Jul 2011
    Posts
    45

    Default Re: Formmail with smtp auth

    What was the problem you encountered without PEAR? Saying "it did not work" doesn't give much information on which to go about helping you.

  7. #7
    Join Date
    Mar 2012
    Posts
    6

    Default Re: Formmail with smtp auth

    The error I get is as originally stated:

    An error occurred while processing the form .

    Please contact us (bon-voyage.uk.com) directly since this form is not working .
    bon-voyage.uk.com apologizes for any inconvenience this error may have caused.

    When I raise the mater with my hosting company they state:
    "Please make sure you have included all pear class files under domain root directory in order to work it correct"

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

    Default Re: Formmail with smtp auth

    first, always get alerts working befure submitting a form:
    when that sends u email, u are in good shape

    next, this is wrong:
    PHP Code:
     $TARGET_EMAIL = array(EMAIL_NAME."info@bon-voyage\.uk\.com$"); 
    should be:
    PHP Code:
     $TARGET_EMAIL = array(EMAIL_NAME."@bon-voyage\.uk\.com$"); 
    When I raise the mater with my hosting company they state:
    "Please make sure you have included all pear class files under domain root directory in order to work it correct"
    why don't they do it for u? u do pay them, right?

    go here:follow the installation instructions, u also need dependencies, and dependencies on depenedencies, and so on.

  9. #9
    Join Date
    Mar 2012
    Posts
    6

    Default Re: Formmail with smtp auth

    Many thanks crabtree.

    Firstly the http://www.bon-voyage.uk.com/formmail.php?testalert=1 was sent successfully, just one query in the email it stated:

    "PATH_TRANSLATED: -not set- " is this a problem?

    I have modified the code to: $TARGET_EMAIL = array(EMAIL_NAME."@bon-voyage\.uk\.com$");

    Yes I do pay my hosting company Jodohosts and have been pursuing them to put in the PEAR class files but as yet with no success.

    I am going to try and follow the link you sent me for installing, and hopefully I might manage my way through.

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

    Default Re: Formmail with smtp auth

    Quote Originally Posted by jimsaxton View Post
    "PATH_TRANSLATED: -not set- " is this a problem?
    no, but annoying. ur host just hasn't setup php to supply that info.

    Yes I do pay my hosting company Jodohosts and have been pursuing them to put in the PEAR class files but as yet with no success.
    i know - seems a common story.

    there are some good hosts out there. worth discussing it with other webmasters at http://www.webhostingtalk.com/


Thread Information

Users Browsing this Thread

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

Similar Threads

  1. smtp error
    By Sunnyoak in forum Community Support
    Replies: 2
    Last Post: 17-Mar-2012, 06:25 AM
  2. Is SMTP Authentication supported?
    By angelight in forum Features Questions
    Replies: 10
    Last Post: 03-Nov-2011, 07:35 PM
  3. SMTP delivery confirmation
    By matty in forum FormMail Subscription Support
    Replies: 5
    Last Post: 08-Dec-2004, 10:52 PM
  4. Creating mail object using Mail::factory ("smtp", ....) and FormMail
    By stingray in forum FormMail Subscription Support
    Replies: 1
    Last Post: 13-Jul-2004, 09:27 PM
  5. SMTP Server Authentication
    By Striker in forum FormMail Subscription Support
    Replies: 5
    Last Post: 04-May-2004, 11:40 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
  •