Author Topic: Any way to exclude free e-mail accounts from signing up?  (Read 1570 times)

ryang

  • Posts: 10
    • View Profile
Any way to exclude free e-mail accounts from signing up?
« on: July 06, 2005, 06:27:52 pm »
Since my target market is business users, I want them to use their work e-mail addresses, and that way I know which company they work for. Also, I get a lot of competitors trying to sign up for free info.

Is there a way to exclude certain domains from signing up?

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Any way to exclude free e-mail accounts from signing up?
« Reply #1 on: July 06, 2005, 08:26:53 pm »
Currently, the recommended method is with some JavaScript in your signup form.

The following example will simply warn the user:

Code: [Select]
<form name="formname" method="post" action="http://site.com/mail/signup.php" onsubmit="if(document.formname.email.value.indexOf('hotmail.com') > -1){ alert('When subscribing a HotMail address you must add our domain to your safelist'); return true; }">

The next example will stop the user from subscribing:

Code: [Select]
<form name="formname" method="post" action="http://site.com/mail/signup.php" onsubmit="if(document.formname.email.value.indexOf('hotmail.com') > -1){ alert('Please do not use a HotMail account'); return false; }">

The next example will stop the subscription of addresses on both HotMail.com and Yahoo.com

Code: [Select]
<form name="formname" method="post" action="http://site.com/mail/signup.php" onsubmit="if(document.formname.email.value.indexOf('hotmail.com') > -1){ alert('Please do not use a HotMail account'); return false; } if(document.formname.email.value.indexOf('yahoo.com') > -1){ alert('Please do not use a Yahoo account'); return false; }">

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting