473,395 Members | 2,796 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

[DEV] mail() function modification

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
2 2347
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
> 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.