<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">The php mail function takes the 'from' header as an argument. You could change that in your code; you could also change the default value in php.ini.<div><br class="webkit-block-placeholder"></div><div>You <i>will</i> need a valid email address to send the mail from, or else well-configured mailservers are going to reject your email. You could try user@<ipaddress>, mileage may vary (it may work, but I have a vague recollection that it's against the standard). </div><div><br class="webkit-block-placeholder"></div><div>At a worst-case, I'd recommend a) acquiring a domain name or b) using another email address you happen to have control of or c) getting an email address with another provider (ie. <a href="mailto:noreply.sudokusolver@gmail.com">noreply.sudokusolver@gmail.com</a> or the like) and using that to at least get your mail delivered.</div><div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><div>Andy White</div><div>Director, Looking Glass Solutions</div><div>e: <a href="mailto:andy@lgsolutions.com.au">andy@lgsolutions.com.au</a></div><div>m: 0411246100</div><div>w: <a href="http://www.lgsolutions.com.au">http://www.lgsolutions.com.au</a></div></div><br class="Apple-interchange-newline"></span> </div><br><div><div>On 20/03/2008, at 9:00 AM, Deepan wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi All,<br>I am using sendmail via php mail function to send<br>emails. However few servers reject my mails with<br>the error 'Sender address rejected: Domain not<br>found', since mails from my server are sent as<br><a href="mailto:email@localhost.localdomain">email@localhost.localdomain</a>. How do I change this<br>to a valid domain name ? We only own a public IP.<br>we dont really have a domain name, is it possible<br>to use IP ? <br>Regards<br>Deepan<br>Facebook Sudoku Solver:<br><a href="http://apps.facebook.com/sudokusolver/">http://apps.facebook.com/sudokusolver/</a> <br>Sudoku Solver: <a href="http://www.sudoku-solver.net/">http://www.sudoku-solver.net/</a> <br>Home Page: <a href="http://www.codeshepherd/">http://www.codeshepherd/</a> <br><br><br><br>_______________________________________________<br>linux-aus mailing list<br><a href="mailto:linux-aus@lists.linux.org.au">linux-aus@lists.linux.org.au</a><br>http://lists.linux.org.au/listinfo/linux-aus<br></blockquote></div><br></div></body></html>