There are a few mail function in PHP, you did not define which one you are using. You need to set the SENDER email address to a proper domain and this should be YOUR domain (read the RFC's about why).
Assming you are using: bool mail ( string $to , string $subject , string $message [, string $additional_headers [, string $additional_parameters ]] ) You need to set the additional headers to a proper domain and email address, "from: [EMAIL PROTECTED]" ... and ahh ... dont use php to SPAM. Jobst On Thu, Mar 20, 2008 at 03:38:13AM +0530, Deepan ([EMAIL PROTECTED]) 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 PROTECTED] 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 > Facebook Sudoku Solver: > http://apps.facebook.com/sudokusolver/ > Sudoku Solver: http://www.sudoku-solver.net/ > Home Page: http://www.codeshepherd/ > > > -- > SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ > Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- * help! I've fallen over and I can't SIGHUP! | |0| | Jobst Schmalenbach, [EMAIL PROTECTED], General Manager | | |0| Barrett Consulting Group P/L & The Meditation Room P/L |0|0|0| +61 3 9532 7677, POBox 277, Caulfield South, 3162, Australia -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
