Re: Apache send mail and php
- From: wesley@xxxxxxxxxxxx
- Date: 17 Jul 2006 04:07:00 -0700
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
.
- References:
- Apache send mail and php
- From: wesley
- Re: Apache send mail and php
- From: J.O. Aho
- Re: Apache send mail and php
- From: bizshop
- Apache send mail and php
- Prev by Date: Re: PHP paypal integration
- Next by Date: suggestion needed
- Previous by thread: Re: Apache send mail and php
- Next by thread: "call to undefined function" mysql_error when adding new rows to table
- Index(es):
Relevant Pages
|