Apache Server configuration support - Apache send mail and php

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > July 2006 > Apache send mail and php





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Apache send mail and php
wesley@ispace.co.za

2006-07-14, 7:28 am

Hi All, i am using a php script to send emails but i cannot seem to use
my own from_address as Apache keeps putting its own address, how do i
change that? I have looked in the httpd.conf but the changes that i
made do not seem to make a difference. Any suggestions?
Thanks Wes

Davide Bianchi

2006-07-14, 7:28 am

On 2006-07-14, wesley@ispace.co.za <wesley@ispace.co.za> wrote:
> Hi All, i am using a php script to send emails but i cannot seem to use
> my own from_address as Apache keeps putting its own address, how do i
> change that?


In your php script set the 'from' address. It has nothing to do with apache.

Davide


--
Better dead than Redmond.
wesley@ispace.co.za

2006-07-14, 1:21 pm

i have done that, but Apache puts its own address there and the
from_address that i put ends up like a header and not the sender

Davide Bianchi

2006-07-14, 1:21 pm

On 2006-07-14, wesley@ispace.co.za <wesley@ispace.co.za> wrote:
> i have done that, but Apache puts its own address there and the
> from_address that i put ends up like a header and not the sender


Then is some misconfiguration in the mail server. Ask in one of the many
php-related newsgroup or on a newsgroup related to the mail server you're
using.

Davide

--
Windows: The answer to a question nobody has ever asked.
John Clancy

2006-07-17, 7:26 am

On Fri, 14 Jul 2006 15:12:58 +0200, Davide Bianchi
<davideyeahsure@onlyforfun.net> wrote:

>On 2006-07-14, wesley@ispace.co.za <wesley@ispace.co.za> wrote:
>
>Then is some misconfiguration in the mail server. Ask in one of the many
>php-related newsgroup or on a newsgroup related to the mail server you're
>using.
>
>Davide


Assuming you are using sendmail you may need to add the apache user to
the trusted users group.

JC
wesley@ispace.co.za

2006-07-17, 7:26 am

How would i add apache to the trusted users group?

John Clancy wrote:
> On Fri, 14 Jul 2006 15:12:58 +0200, Davide Bianchi
> <davideyeahsure@onlyforfun.net> wrote:
>
>
> Assuming you are using sendmail you may need to add the apache user to
> the trusted users group.
>
> JC


John Clancy

2006-07-18, 7:31 am

On 17 Jul 2006 02:05:14 -0700, wesley@ispace.co.za wrote:
[vbcol=seagreen]
>How would i add apache to the trusted users group?
>
>John Clancy wrote:

See the docs for sendmail at sendmail.org

In some distros the trusted-users table is in /etc/mail may be in
other locations with other distros.

If you have webmin installed you can use that to add to the
trusted-users table

JC
Michael Satterwhite

2006-07-28, 7:22 pm

Davide Bianchi wrote:

> On 2006-07-14, wesley@ispace.co.za <wesley@ispace.co.za> wrote:
>
> In your php script set the 'from' address. It has nothing to do with
> apache.


This is really a php question.

The 4th parameter to mail is headers. At the beginning of the headers add

"From: <desired from address>\r\n"

This will put any address you desire as the from_address in the email. You
can do the same thing to set reply to or whatever.



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com