Re: Apache send mail and php



Yes, i am running my own server.
How do i change the send mail configuration?

this is my code:

//email the password
$to = "you@yourdomain";

$sendmail_from = "me@mydomain";
$subject = "hello";


$body = "this is the body";

if (mail($to,$subject,$body,$sendmail_from)){
echo "sent";

else {
echo "mail not sent";
}




bizshop wrote:
Most likely it is in the sendmail configuration that needs to be
changed to allow you to send from another address.

Are you running your own server where you can change the configuration?
Do you have your domain set up as a local host in sendmail?

J.O. Aho wrote:
wesley@xxxxxxxxxxxx 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? I have looked in the httpd.conf but the changes that i
made do not seem to make a difference. Any suggestions?
Thanks Wes


You need to modify the mail header, to use your mail, with other words fix
your php script.


//Aho

.



Relevant Pages

  • Re: Apache send mail and php
    ... How do i change the send mail configuration? ... echo "mail not sent"; ... You need to modify the mail header, to use your mail, with other words fix ...
    (alt.php)
  • Re: WEB SITE PROJECT DEPLOYMENT ~ Help please??
    ... ECHO When/If prompted with the question: ... The files are all now sitting on my Server, and when I load my web site, ... An error has occurred while establishing a connection to the server. ... The connection string specifies a local Sql Server Express instance using ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Script Need to check disk space on remote servers
    ... Is it possible to get SQL Server database and log information (like ... echo Checking drives on Server %%S... ... REM this part of the script generates an HTML file with all the ... REM and then launches it using the default browser. ...
    (microsoft.public.windows.server.scripting)
  • Re: Script Need to check disk space on remote servers
    ... Is it possible to keept the process running by skipping over remote computer ... Is it possible to get SQL Server database and log information (like ... echo Checking drives on Server %%S... ... REM and then launches it using the default browser. ...
    (microsoft.public.windows.server.scripting)
  • My solution for preventing xhost +
    ... from running xhost + and thereby exposing an/the X server. ... If the script detects this condition, ... echo "Re-enabling access control per Security Policy." ...
    (Focus-SUN)