On Wed, Mar 19, 2008 at 11:22 PM, Jeff DeFouw &lt;<a href="mailto:jeffd@i2k.com">jeffd@i2k.com</a>&gt; wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Thu, Mar 20, 2008 at 03:36:39AM +0530, Deepan wrote:<br>
&gt; I am using sendmail via php mail function to send<br>
&gt; emails. However few servers reject my mails with<br>
&gt; the error &#39;Sender address rejected: Domain not<br>
&gt; found&#39;, since mails from my server are sent as<br>
&gt; <a href="mailto:email@localhost.localdomain">email@localhost.localdomain</a>. How do I change this<br>
&gt; to a valid domain name ? We only own a public IP.<br>
&gt; we dont really have a domain name, is it possible<br>
&gt; to use IP ?<br></div></blockquote></div><br>You are unlikely to successfully deliver to the big three free email providers (Gmail, Yahoo mail, and Hotmail) unless you have:<br>1) a real domain name<br>2) on a non-dynamic IP address<br>
3) with a legitimate reverse DNS<br>4) and have SPF configured<br>5) and are using a non-spam-friendly server host<br><br>If you don&#39;t want to go through all that, your best bet is to forward your emails through your ISP&#39;s servers using use PHP Mailer ( <a href="http://phpmailer.codeworxtech.com/">http://phpmailer.codeworxtech.com/</a> ).<br>