Address Bin

 

Addressbin/Blog

How to include custom parameters in your email marketing with Addressbin

The only thing you need to add a recipient to a bin with Addressbin is their email address, but did you know you can actually tag addresses with whatever extra data you want? Just include the data in your opt-in form, and Addressbin will store it along with that subscriber.

For example, here's an HTML snippet to collect a name along with an email address:

<form method="post" action="https://addressbin.com/api/v1/YOUR_BIN_ID/">
    <label for="name">Your Name:</label>
    <input type="text" name="name">
    <br>
    <label for="email">Your Email Address:</label>
    <input type="email" name="email">
    <br>
    <input type="submit" value="Subscribe">
</form>

This will cause Addressbin to store an extra parameter called “name” for this subscriber.

Then, when you write your email, you can refer to the user with this special macro: @{name}. For example, to greet your subscriber personally:

    Hello, @{name}

Even if you don't provide any extra data, you can still access the subscriber's email address with @{address}

Other uses

This flexible system allows you to do things like the following:

  • Personalize your message with data gathered about the user
  • Include a custom signup or conversion link for each subscriber
  • Insert a special tag for each link in the email to make that user show up in your Analytics software

Be careful

If you include a reference to a parameter that does not exist, it will still be there when your subscriber receives your message! If you want to add parameters to addresses in an existing bin, you'll probably want to create a new bin and contact our friendly support staff at support@addressbin.com to help you transfer your existing addresses with their new information.

 
 
 

Recent Articles