cmimrie
04-09-2007, 07:19 PM
Hello.
So I have a script which is emailing users a URL.
Here are the two parts of the code;
config.inc.php
//mail setup
$msubject = "Example Subject";
$mbody= "Uploaded: [url]";
$mheaders = "";
upload.php
if ( $_POST[email] ) {
mail($_POST[email],$msubject,str_replace("[url]",urln($filex,$rn,$baseurl),$mbody));
}
Now I have set the following in the httpd.conf;
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f example@example.com"
Now everything is partially fine and dandy, as before I implemented the http line, it would send you an email from nobody@yourserverhostname.com and since the above modification it emails from example@example.com. However, the sender still shows as Nobody does anybody know how to modify this setting to show Example or my choice of Sender, I have tried many times and have yet to find a working solution.
Any help is much appreciated.
So I have a script which is emailing users a URL.
Here are the two parts of the code;
config.inc.php
//mail setup
$msubject = "Example Subject";
$mbody= "Uploaded: [url]";
$mheaders = "";
upload.php
if ( $_POST[email] ) {
mail($_POST[email],$msubject,str_replace("[url]",urln($filex,$rn,$baseurl),$mbody));
}
Now I have set the following in the httpd.conf;
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f example@example.com"
Now everything is partially fine and dandy, as before I implemented the http line, it would send you an email from nobody@yourserverhostname.com and since the above modification it emails from example@example.com. However, the sender still shows as Nobody does anybody know how to modify this setting to show Example or my choice of Sender, I have tried many times and have yet to find a working solution.
Any help is much appreciated.
