[Discuss] Sendmail configuration
DR
vlug at drsol.com
Wed Mar 19 16:26:34 PDT 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
You need to set the "additional headers" and "additional parameters"
arguments in the call to php mail().
Something like this:
mail (someone at foo.orc, "A subject line", $messageBody,
"From: someoneelse at some.orc\n",
"-f me at mine.orc");
This sets the From: header to someonelse at some.orc and the envelope
sender to me at mine.orc.
Deid
More information about the Discuss
mailing list