News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Member Management

Started by rpoelking, October 08, 2004, 02:14:45 PM

Previous topic - Next topic

[Unknown]

Example:

php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f [email protected]"

Or:

php_value sendmail_path "/usr/sbin/sendmail -t -i -f [email protected]"

I copied that straight off:
http://www.php.net/mail

-[Unknown]

blark

Thanks, that was very quick!
I presume this goes in a php.ini file, and that goes
in the root of the forum directory?


[Unknown]

Quote from: blark on January 18, 2005, 04:54:48 AM
Thanks, that was very quick!
I presume this goes in a php.ini file, and that goes
in the root of the forum directory?

Well, both of the things I quoted are for Apache.  I assume you're on a shared host, with many clients, so they may not be keen on changing php.ini.

However, they can change it on a domain-by-domain basis in httpd.conf (Apache), or they can simply create a .htaccess in the forum's directory with the second one.

-[Unknown]

blark

Quote from: [Unknown] on January 18, 2005, 05:09:59 AM

Well, both of the things I quoted are for Apache.  I assume you're on a shared host, with many clients, so they may not be keen on changing php.ini.

However, they can change it on a domain-by-domain basis in httpd.conf (Apache), or they can simply create a .htaccess in the forum's directory with the second one.

-[Unknown]

Yes, it's apache, forgive my ignorance, but can I simply
make a file .htaccess and put a line similar to:

php_value sendmail_path "/usr/sbin/sendmail -t -i -f [email protected]"

Do I need anthing else?
You have been extremely helpful, I offer many thanks.
B.





[Unknown]

Yep, that should be fine ;).

-[Unknown]

bluesyrio

I have placed the same problem elsewhere (somehow my search in the message board back then didn't bring this topic up):

http://www.simplemachines.org/community/index.php?topic=17153.msg330280#msg330280
http://www.simplemachines.org/community/index.php?topic=40269.msg331025#msg331025

I would like to use the solution that avoids this:

QuoteWe're using 'sendmail' for the mail. Despite the fact that Sub-Post.php
adds a "Reply-To: " header, sendmail was adding another one
as the user of the webserver, and more or less ignoring the first
one. I don't know why.

But the .htaccess suggestion doesn't work (get internal error after that - and I have no idea if the server is Apache) and I haven't tried the changed in the Subs-Post.php because I'm not a 100% sure of how the code should be changed:

QuoteAnyway, the admin of the server looked at the code, and insisted
that the correct thing to do is to add a "-fadmin.address.of.board"
as a 5th parameter of the
if (!mail(strtr($to, array("\r" => '', "\n" => '')), $subject, $message, $headers)) line in Subs-Post.php

Could someone help me with that? It would be really useful for us.

Advertisement: