<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — Allowing registration only from a specefic domain]]></title>
		<link>https://punbb.informer.com/forums/topic/15380/allowing-registration-only-from-a-specefic-domain/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/15380/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Allowing registration only from a specefic domain.]]></description>
		<lastBuildDate>Wed, 04 Apr 2007 02:30:44 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Allowing registration only from a specefic domain]]></title>
			<link>https://punbb.informer.com/forums/post/91142/#p91142</link>
			<description><![CDATA[<p>yes, it is the cause. There is not Reply-to in the headers, and they are blocked. I have check it now with one Yahoo account. </p><p>To solve this, go to include/email.php:</p><p>line 78:</p><p>delete this line:<br /></p><div class="codebox"><pre><code>$headers = &#039;From: &#039;.$from.&quot;\r\n&quot;.&#039;Date: &#039;.date(&#039;r&#039;).&quot;\r\n&quot;.&#039;MIME-Version: 1.0&#039;.&quot;\r\n&quot;.&#039;Content-transfer-encoding: 8bit&#039;.&quot;\r\n&quot;.&#039;Content-type: text/plain; charset=&#039;.$lang_common[&#039;lang_encoding&#039;].&quot;\r\n&quot;.&#039;X-Mailer: PunBB Mailer&#039;;</code></pre></div><p>and replace with this:<br /></p><div class="codebox"><pre><code>        $replyto = $pun_config[&#039;o_webmaster_email&#039;];

    if ($from != $pun_config[&#039;o_webmaster_email&#039;]) {
        $replyto = $from;
    } 
            
    $headers = &#039;From: &#039;.$from.&quot;\r\n&quot;.&#039;Date: &#039;.date(&#039;r&#039;).&quot;\r\n&quot;.&#039;MIME-Version: 1.0&#039;.&quot;\r\n&quot;.&#039;Content-transfer-encoding: 8bit&#039;.&quot;\r\n&quot;.&#039;Content-type: text/plain; charset=&#039;.$lang_common[&#039;lang_encoding&#039;].&quot;\r\n&quot;.&#039;Reply-To: &#039;.$replyto.&quot;\r\n&quot;.&#039;X-Mailer: PunBB Mailer&#039;;</code></pre></div><p>note the first line makes that all automatic messages they now have an automatic reply to your webmaster address. If you don&#039;t want replies in your main email address, then the best thing is creating a new e-mail account in your server, in example rubbish@mydomain.com. In this way,&nbsp; those e-mails will be received in that account which must be cleaned periodically. In this case,&nbsp; you will need to replace the first line of this patch with your new e-mail address for the unwanted replies:</p><div class="codebox"><pre><code>    $replyto = &#039;rubbish@mydomain.com&#039;;</code></pre></div><p>that&#039;s all. Rest of messages between users inside the forum will work normally.</p><p>--</p>]]></description>
			<author><![CDATA[null@example.com (svo)]]></author>
			<pubDate>Wed, 04 Apr 2007 02:30:44 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/91142/#p91142</guid>
		</item>
		<item>
			<title><![CDATA[Re: Allowing registration only from a specefic domain]]></title>
			<link>https://punbb.informer.com/forums/post/91138/#p91138</link>
			<description><![CDATA[<p>I don&#039;t understand exactly what you says. At least I don&#039;t see any code in register.php blocking Gmail addresses. <br />Gmail users are normally registered, at least in my forum. </p><p>What I have is several users of Yahoo and Hotmail, who cannot receive e-mails, both from registration process or&nbsp; from the forgotten passwords. </p><p>I have check these messages truly are leaving from the server. Therefore there is something in the email headers that Yahoo and Hotmail don&#039;t like and probably they are blocked like spam.&nbsp; </p><p>Specially, the e-mail headers lacks of a Reply to: field, and also they contain a <br />Received: from nobody by host.mydomain.com with local ....</p><p>maybe the sum of these two causes that blocking. I&#039;m looking how replacing this issue. </p><br /><p>Somebody know about that?</p>]]></description>
			<author><![CDATA[null@example.com (svo)]]></author>
			<pubDate>Wed, 04 Apr 2007 01:57:37 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/91138/#p91138</guid>
		</item>
		<item>
			<title><![CDATA[Allowing registration only from a specefic domain]]></title>
			<link>https://punbb.informer.com/forums/post/90888/#p90888</link>
			<description><![CDATA[<p>Hi,<br />I need help to modify the register.php file to check domain name of the email user is inputting,<br />I want to allows visitors that has email adress @gmail.com can register.<br />i looked at register.php, at the validation part, it requires include/mail.php,<br />I think this line should be modified to do the job i want,<br /></p><div class="codebox"><pre><code>return preg_match(&#039;/^(([^&lt;&gt;()[\]\\.,;:\s@&quot;\&#039;]+(\.[^&lt;&gt;()[\]\\.,;:\s@&quot;\&#039;]+)*)|(&quot;[^&quot;\&#039;]+&quot;))@((\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\])|(([a-zA-Z\d\-]+\.)+[a-zA-Z]{2,}))$/&#039;, $email);</code></pre></div><p>but i don&#039;t know what to write instead.<br />Any helps pleas!<br />Regards</p>]]></description>
			<author><![CDATA[null@example.com (Asso)]]></author>
			<pubDate>Fri, 30 Mar 2007 22:33:42 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/90888/#p90888</guid>
		</item>
	</channel>
</rss>
