[sllug-members]: Sendmail configuration
Lonnie Olson
sllug at fungusmovies.com
Thu Mar 20 08:35:34 MST 2008
Deepan wrote:
> Hi All,
> I am using sendmail via php mail function to send
> emails. However few servers reject my mails with
> the error 'Sender address rejected: Domain not
> found', since mails from my server are sent as
> email at localhost.localdomain. How do I change this
> to a valid domain name ? We only own a public IP.
> we dont really have a domain name, is it possible
> to use IP ?
> Regards
> Deepan
Change the Sender Address when you send the email.
This can be done inside the PHP mail() function.
mail($to,$subject,$message,$headers,"-f someone at validdomain.com");
http://us3.php.net/manual/en/function.mail.php
--lonnie
More information about the sllug-members
mailing list