You are welcome to request a custom opt-in form from your Dog Handler at any time. But, if you'd like to try your hand at coding your own, here is a simple 10-step guide. Before you start building the code that you will post on your website (that will subsequently gather new subscriber data automatically in your Mail Dog account), it is a good idea to set up the list that the data will be gathered in and the confirmation message that will be sent to new subscribers. Step 1: Go to Lists and name and save your new list that will house this data (if you have a list already created or simply want the data to merge into a current list you've uploaded, select that list on the page). After saving the new list or selecting the existing list note the list's ID number (located in the list's URL in the address bar of your browser where you see ID= followed by a number). This number uniquely identifies this list and will need to be inserted into your opt-in code. (NOTE! Make your list a rich list by checking the 'create a rich list' box if you plan to gather any data beyond email address) Step 2: Visit Messages and create a placeholder for the custom confirmation email message that you want new subscribers to receive after they have added themselves to your mailing list. After naming and saving your message note this message's ID number (located in the message's URL in the address bar of your browser where you see ID= followed by a number). (NOTE! You can customize this message later with text and images, for now you simply need to name and save it). (NOTE! In this unique case the name of your message is viewable to recipients, it becomes the subject of your auto-generated confirmation email to new subscribers so you will want to choose something like "Thank you for subscribing!" or "Welcome to our mailing list!") Once you have noted the ID numbers of both your list and your message you are ready to build your code! The best place to build this opt-in code is in a plain text environment, use Notepad on a PC or SimpleText on a MAC. Step 3: Start by copying and pasting the following block of code, you will not need to modify anything in the following block:
Step 4: Enter your list's ID number into the following VALUE field, erasing ENTER NUMBER HERE and replacing it with your list's ID. Then copy and paste this line in next: Example: Step 5: Copy the following line of code in its entirety, you do not need to modify anything in this line:
Email:
Next you will need to customize the additional fields you would like to collect beyond email address (i.e. First Name, Last Name, Mailing Address, Interests, etc.) You can ask for up to 25 additional fields of data. You will want to use a unique field number for each and you will want to replace the text at the start of the line (i.e. Field 1:) with the information you are requesting as it will be visible to the user, but the rest of the code inside of the brackets remains unchanged (NOTE! We show the first five field examples below, but remember you can use up to 25 total)...
Field 1:

Field 2:

Field 3:

Field 4:

Field 5:
. . .
Field 25:
(NOTE! Do not include email as a field as you have already included it in Step 5) Step 6: Now you will add the subscribe and unsubscribe radio buttons and the submit button. Copy and paste the following lines into your code (nothing needs to be altered here):

Subscribe Unsubscribe
Step 7: Tell your form what account you are by entering your username in place USERNAME HERE: Step 8: Add the message ID of the custom confirmation message you set up earlier to the following line in place of CONFIRMATION MESSAGE ID: Step 9: (NOTE! This is optional) If you would like to require any of your data fields beyond email (first name and last name, for example) you will need to add a bit of code that gives an error message to the user if these fields are left blank. For each field number you want to require you will add the following line: Example: if you wanted to require first name and zip code and you find that they are field 1 and field 5 in your form, you would add the following to your opt-in code: (NOTE! Skip this step if you do not want to require any fields besides email, which is required automatically) Step 10: End your opt-in form with the following close form tag:
Save your form in a text document and test it by creating an opt-in form test message in your account, inserting the completed code into the HTML box on your main messages page and then previewing the page (fill it in and submit it - your confirmation message should appear and your data should then populate in your list - if it all works you're ready to post the opt-in code on your website!) A completed Opt-in code sample:


First Name:

Last Name:

Company Name:

Zip Code:


Subscribe Unsubscribe