ListMailPRO Email Marketing Software Forums

ListMailPRO Email Marketing Software Forums => General Help & How-To => Topic started by: ryang on July 06, 2005, 06:27:52 pm

Title: Any way to exclude free e-mail accounts from signing up?
Post by: ryang 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?
Title: Any way to exclude free e-mail accounts from signing up?
Post by: DW 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