"User/Group" was set to nobody(99)/99 and "sendmail_from" did have no value. However, just for info sake, I set $mailfrom="[EMAIL PROTECTED]" to $mailfrom="From: [EMAIL PROTECTED]" and all worked.

Thanks for the suggestions!


On Oct 27, 2005, at 10:10 PM, R'twick Niceorgaw wrote:

Steve,

On Thu, 2005-10-27 at 21:19 -0400, steve miller wrote:
Hi all.

Could use some help with php mail(). I am using this to send email, and
have having trouble getting the reply address right:

$mailto="$userstuff[3]";
$mailfrom="[EMAIL PROTECTED]";

set $mailfrom as
$mailfrom="From: [EMAIL PROTECTED]
\nReply-To:[EMAIL PROTECTED]";

(above line may be wrapped)

take a look at http://us3.php.net/manual/en/function.mail.php
Here's some information form the above page about the 4th parameter to
mail function (which you have defined here as $mailfrom)
-----------
additional_headers (optional)

        String to be inserted at the end of the email header.

This is typically used to add extra headers (From, Cc, and Bcc).
        Multiple extra headers should be separated with a CRLF (\r\n).

                Note:  When sending mail, the mail must contain a From
                header. This can be set with the additional_headers
                parameter, or a default can be set in php.ini.

                Failing to do this will result in an error message
                similar to Warning: mail(): "sendmail_from" not set in
                php.ini or custom "From:" header missing.

Note: If messages are not received, try using a LF (\n)
                only. Some poor quality Unix mail transfer agents
                replace LF by CRLF automatically (which leads to
                doubling CR if CRLF is used). This should be a last
                resort, as it does not comply with RFC 2822.
---------------

HTH
-R'twick



____ • The WDVL Discussion List from WDVL.COM • ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or
use the web interface http://e-newsletters.internet.com/discussionlists.html/
      Send Your Posts To: wdvltalk@lists.wdvl.com
To change subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: archive@jab.org
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.

Reply via email to