+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14

Thread: Error in output. new user.

  1. #1
    Join Date
    Dec 2004
    Posts
    13

    Red face Error in output. new user.

    I am new at this so be kind.

    I set up the formmail.php as suggested.
    I am using the sample form from the download section.

    when I go to submit the sample form, I get this message:

    FAILED to send alert message. Check your server error logs.

    PHP Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in C:\hshome\valleypr\valleyprintingfargo.com\formmail.php on line 2871

    Help?

    Lester
    Last edited by Lesjo; 01-Dec-2004 at 08:09 PM.

  2. #2
    Join Date
    Dec 2003
    Posts
    3,907

    Default Re: Error in output. new user.

    Hi,

    It seems from the error message that your server wants a valid sender.

    Think of an email address you know your server can send from (such as your own); if you've never sent email from your server, then just try your own email address.

    On the sample form, enter this email address and submit.

    Do you still get the error message?
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    Dec 2004
    Posts
    13

    Default Re: Error in output. new user.

    I contacted my host and ran two new scripts to see if the problem was on their end.

    Quoting:
    To Host: I have installed 2 simple php scripts and neither of them work. Can you tell me why?

    attached: testmail.php, testmail2.php

    From Host:
    That is because you are missing a FROM address in your sendmail script. Please make sure you put in a valid FROM address.

    This seems to be the same problem as I get from the sample form for the formmail.php. I went back to the website and ran the situation again, using a different email address, and get the same results.

    What next?



  4. #4
    Join Date
    Dec 2003
    Posts
    3,907

    Default Re: Error in output. new user.

    Hi,

    I assume you put your email address in the value for $ADDR in these test scripts.

    If not, do that and test again.

    I've attached a third test script. Set $ADDR to your email address and try it.

    If that doesn't work, you can reply to your hosting provider with this script and say something like "This script has the FROM specified in 3 places - in the header, in the body, and in the -f option. Why doesn't it work?"
    Attached Files
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  5. #5
    Join Date
    Dec 2004
    Posts
    13

    Red face Re: Error in output. new user.

    I am going 'round and 'round with my hosting service. The latest is that the test scripts still don't work. I am getting the same errors, all pertaining to the FROM address.

    Here is a list of the errors pertaining to the individual scripts:

    running sample_formmail.htm
    -->
    An error occurred while processing the form.

    Please contact us directly since this form is not working.
    We apologize for any inconvenience this error may have caused.



    Your form submission was processed by formmail.php (4.08), available from www.tectite.com

    PHP Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in C:\hshome\valleypr\valleyprintingfargo.com\formmail.php on line 2871 PHP Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in C:\hshome\valleypr\valleyprintingfargo.com\formmail.php on line 2871

    Using testmail.php
    -->

    Mail function FAILED
    PHP Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in C:\hshome\valleypr\valleyprintingfargo.com\testmail.php on line 5

    Using testmail2.php
    -->
    Mail function FAILED with -f parameter
    PHP Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in C:\hshome\valleypr\valleyprintingfargo.com\testmail2.php on line 5

    using testmail3.php
    -->
    Mail function FAILED
    PHP Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in C:\hshome\valleypr\valleyprintingfargo.com\testmail3.php on line 8

    Russell -- I'm stumped.

  6. #6
    Join Date
    Dec 2003
    Posts
    3,907

    Default Re: Error in output. new user.

    Hi,

    Well testmail3.php provides a From: line in the body, as well as in the header and the -f option too.

    If your hosting provider isn't willing to diagnose the problem on the server with this simple script to guide them, then I'd recommend changing hosting providers.

    However, I've attached two more test scripts. If neither of these work, I don't know what else to suggest.

    These scripts set "sendmail_from" using ini_set - this is what the error message is talking about in the first half of it.

    testmail4.php keeps the -f option, testmail5.php has no -f option.

    You need to set $ADDR to your email address before running these scripts.

    Let me know how you go.
    Attached Files
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  7. #7
    Join Date
    Dec 2004
    Posts
    13

    Talking Re: Error in output. new user.

    Thank you! Thank you! Thank you!

    Those both worked!

    Now on to better things... making them work with the actual formmail script.

  8. #8
    Join Date
    Dec 2003
    Posts
    3,907

    Default Re: Error in output. new user.

    Hi,

    That's great.

    The next thing to do is see if you can set $ADDR to a different email address. Set it to supportstaff AT tectite DOT com. If I can receive the email then we know that you server is happy to have any From user.

    After that, we know what needs to be added to FormMail.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  9. #9
    Join Date
    Dec 2004
    Posts
    13

    Thumbs up Re: Error in output. new user.

    I ran testmail5.php to your address. Upon activating the script, I got a successful transmission.

    Ball's in your court!

    Thanks!
    Lester

  10. #10
    Join Date
    Dec 2003
    Posts
    3,907

    Default Re: Error in output. new user.

    Hi,

    Yes, got it!

    So, you need a configuration option in FormMail that calls

    PHP Code:
    ini_set("sendmail_from",emailaddress); 
    I'll see what we can do...
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

+ 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. CSV Output
    By eu4ic in forum FormMail Subscription Support
    Replies: 14
    Last Post: 13-May-2004, 09:51 PM
  2. Submitted form output onto HTML page?
    By LKimber in forum FormMail Subscription Support
    Replies: 2
    Last Post: 13-Apr-2004, 11:39 AM
  3. html output?
    By Ibis in forum FormMail Subscription Support
    Replies: 1
    Last Post: 28-Feb-2004, 09:08 AM
  4. output form into a webpage
    By redsnow in forum FormMail Subscription Support
    Replies: 3
    Last Post: 10-Feb-2004, 12:34 PM
  5. Output format
    By Beamin1 in forum FormMail Subscription Support
    Replies: 4
    Last Post: 18-Jan-2004, 08:46 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