sendmail woes

Daniel teletautala at gmail.com
Thu Dec 14 16:59:38 MST 2006


Matthew,

I appreciate you pointing me to php's mail page.  I will use the extra
parameters specified in the "Friendly" manual.  This will not fix the
sendmail problem, but will help me in my current situation.  I
appreciate your thoughtfulness and kindness in helping me find an
answer to my problem.

-Daniel

On 12/14/06, Matthew Walker <rorith at kydance.net> wrote:
>
> On Thu, December 14, 2006 4:35 pm, Daniel wrote:
> >       $returnValue = mail($mailTo, $subject, $message, $header);
>
> RTFM. :)
>
> http://us2.php.net/manual/en/function.mail.php
>
> bool mail ( string to, string subject, string message [, string
> additional_headers [, string additional_parameters]] )
>
> additional_parameters (optional)
>  The additional_parameters parameter can be used to pass an additional
> parameter to the program configured to use when sending mail using the
> sendmail_path configuration setting. For example, this can be used to set
> the envelope sender address when using sendmail with the -f sendmail
> option.
>  The user that the webserver runs as should be added as a trusted user to
> the sendmail configuration to prevent a 'X-Warning' header from being
> added to the message when the envelope sender (-f) is set using this
> method. For sendmail users, this file is /etc/mail/trusted-users.
>
> Example 3. Sending mail with an additional command line parameter.
>  The additional_parameters parameter can be used to pass an additional
> parameter to the program configured to use when sending mail using the
> sendmail_path.
>  <?php
>  mail('nobody at example.com', 'the subject', 'the message', null,
>     '-fwebmaster at example.com');
>  ?>
>
> --
> Matthew Walker
> Kydance Hosting & Consulting
> LAMP Specialist
>
> /*
> PLUG: http://plug.org, #utah on irc.freenode.net
> Unsubscribe: http://plug.org/mailman/options/plug
> Don't fear the penguin.
> */
>



More information about the PLUG mailing list