Formmail.php brings up error message about configuring "sendmail_from" line

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • chris.huh

    Formmail.php brings up error message about configuring "sendmail_from" line

    This may not be the best place to put this but i have set up apache as
    a testing server on my local machine. Whenever i try to use a
    formmail.php script i downloaded is always come sup saying that i need
    to configure sendmail_from.

    I have changed this (in php.ini) to be to my email address and the smtp
    server is set to be my university's smtp server (which i hope should
    work). But it still comes up with the error.

    The actual error is:

    Warning: mail() [function.mail]: "sendmail_f rom" not set in php.ini or
    custom "From:" header missing

    I have no idea what might be the problem, any ideas?

  • Jerry Stuckle

    #2
    Re: Formmail.php brings up error message about configuring "sendmail_ from"line

    chris.huh wrote:[color=blue]
    > This may not be the best place to put this but i have set up apache as
    > a testing server on my local machine. Whenever i try to use a
    > formmail.php script i downloaded is always come sup saying that i need
    > to configure sendmail_from.
    >
    > I have changed this (in php.ini) to be to my email address and the smtp
    > server is set to be my university's smtp server (which i hope should
    > work). But it still comes up with the error.
    >
    > The actual error is:
    >
    > Warning: mail() [function.mail]: "sendmail_f rom" not set in php.ini or
    > custom "From:" header missing
    >
    > I have no idea what might be the problem, any ideas?
    >[/color]

    Ensure you're updating the correct php.ini file.

    What does a page with just

    <?php phpinfo(); ?>

    in it show?

    --
    =============== ===
    Remove the "x" from my email address
    Jerry Stuckle
    JDS Computer Training Corp.
    jstucklex@attgl obal.net
    =============== ===

    Comment

    • chris.huh

      #3
      Re: Formmail.php brings up error message about configuring &quot;sendmail_ from&quot; line

      a phpinfo() page shows up the university SMTP server as the SMTP server
      set for php.

      Comment

      • Jonathan

        #4
        Re: Formmail.php brings up error message about configuring &quot;sendmail_ from&quot;line

        > chris.huh wrote:[color=blue]
        >
        > The actual error is:
        >
        > Warning: mail() [function.mail]: "sendmail_f rom" not set in php.ini or
        > custom "From:" header missing
        >
        > I have no idea what might be the problem, any ideas?[/color]

        It might be that you did not specify the from mail address.

        Most of the mailservers today need this to prevent mail-relay (this
        prevents the machine from being hijacked to sent SPAM).

        The server checks whether the e-mailadress is known and that is should
        sent mail for this account. If so it will sent the message else it will
        not sent the message.

        Jonathan

        Comment

        • Jerry Stuckle

          #5
          Re: Formmail.php brings up error message about configuring &quot;sendmail_ from&quot;line

          chris.huh wrote:[color=blue]
          > a phpinfo() page shows up the university SMTP server as the SMTP server
          > set for php.
          >[/color]

          OK, but what does it show as the path for php.ini?

          Also - does your SMTP server require authentication? If so, you'll have
          to authenticate before you can send mail.

          --
          =============== ===
          Remove the "x" from my email address
          Jerry Stuckle
          JDS Computer Training Corp.
          jstucklex@attgl obal.net
          =============== ===

          Comment

          Working...