By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,939 Members | 1,602 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,939 IT Pros & Developers. It's quick & easy.

[DEV] mail() function modification

P: n/a
Hi,

I would like contribute to the PHP development but i don't really know where
i can submit my codes !

In fact, i'm a Web Hosting and i authorize the utilisation of the mail()
function.

Meanwhile, this function permit to send mail anonyme ! (the sender is the
apache user in fact)
This problem is twice:
1: anonym mail can be sent
2: in stats (mailog), the sender is always the apache user, so no true stats
can be done

My idea is to permit to set (true or 0) a variable in php.ini, in this case,
the mail() function add a trace in headers (anti-spam) and add the 5th
argument to the mail() function to force a really sender and no more apache
Exemple: php.ini: mailtrace_login = "/home/%login%/www/"
When the function is called:
mail("no****@aol.com", "the subject", $message, "From:
webmaster@$SERVER_NAME", -flogin@$SERVERNAME);
the 5th argument will be set to the %login% pattern found in the current
directory of the script
My code runs but some times it cause a stop PHP script and i don't know why
!
Thanks for your help !

Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Mon, 23 Aug 2004 14:49:28 +0200, Groupe Eurower wrote:
Hi,

I would like contribute to the PHP development but i don't really know where
i can submit my codes !

In fact, i'm a Web Hosting and i authorize the utilisation of the mail()
function.

Meanwhile, this function permit to send mail anonyme ! (the sender is the
apache user in fact)
This problem is twice:
1: anonym mail can be sent
2: in stats (mailog), the sender is always the apache user, so no true stats
can be done

My idea is to permit to set (true or 0) a variable in php.ini, in this case,
the mail() function add a trace in headers (anti-spam) and add the 5th
argument to the mail() function to force a really sender and no more apache
Exemple: php.ini: mailtrace_login = "/home/%login%/www/"
When the function is called:
mail("no****@aol.com", "the subject", $message, "From:
webmaster@$SERVER_NAME", -flogin@$SERVERNAME);
the 5th argument will be set to the %login% pattern found in the current
directory of the script
My code runs but some times it cause a stop PHP script and i don't know why
!
Thanks for your help !

You mean just like:
php_admin_value sendmail_path "/usr/sbin/sendmail -oi -t -f
me@domain.invalid"
??

My servers for the most part never send mail as the Apache user.

Regards,

Ian

--
Ian.H
digiServ Network
London, UK
http://digiserv.net/

Jul 17 '05 #2

P: n/a
> php_admin_value sendmail_path "/usr/sbin/sendmail -oi -t -f
me@domain.invalid"
On the default PHP send mail with -t -f !
For me it's not enough ...
I would like really that the -f envelop be function of the path of the PHP
script called !

Thanks
"Ian.H" <ia*@WINDOZEdigiserv.net> a écrit dans le message de news:
pa****************************@bubbleboy.digiserv. net... On Mon, 23 Aug 2004 14:49:28 +0200, Groupe Eurower wrote:
Hi,

I would like contribute to the PHP development but i don't really know where i can submit my codes !

In fact, i'm a Web Hosting and i authorize the utilisation of the mail()
function.

Meanwhile, this function permit to send mail anonyme ! (the sender is the apache user in fact)
This problem is twice:
1: anonym mail can be sent
2: in stats (mailog), the sender is always the apache user, so no true stats can be done

My idea is to permit to set (true or 0) a variable in php.ini, in this case, the mail() function add a trace in headers (anti-spam) and add the 5th
argument to the mail() function to force a really sender and no more apache Exemple: php.ini: mailtrace_login = "/home/%login%/www/"
When the function is called:
mail("no****@aol.com", "the subject", $message, "From:
webmaster@$SERVER_NAME", -flogin@$SERVERNAME);
the 5th argument will be set to the %login% pattern found in the current
directory of the script
My code runs but some times it cause a stop PHP script and i don't know why !
Thanks for your help !

You mean just like:
php_admin_value sendmail_path "/usr/sbin/sendmail -oi -t -f
me@domain.invalid"
??

My servers for the most part never send mail as the Apache user.

Regards,

Ian

--
Ian.H
digiServ Network
London, UK
http://digiserv.net/

Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.