469,649 Members | 1,241 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,649 developers. It's quick & easy.

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_from" not set in php.ini or
custom "From:" header missing

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

Jan 9 '06 #1
4 3492
chris.huh wrote:
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_from" not set in php.ini or
custom "From:" header missing

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


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.
js*******@attglobal.net
==================
Jan 9 '06 #2
a phpinfo() page shows up the university SMTP server as the SMTP server
set for php.

Jan 9 '06 #3
> chris.huh wrote:

The actual error is:

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

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


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
Jan 9 '06 #4
chris.huh wrote:
a phpinfo() page shows up the university SMTP server as the SMTP server
set for php.


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.
js*******@attglobal.net
==================
Jan 10 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

15 posts views Thread by lkrubner | last post: by
1 post views Thread by Alan Little | last post: by
6 posts views Thread by Karl Groves | last post: by
2 posts views Thread by upendrajpr | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.