1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[$$$] A way to capture email addresses from email traffic to my site?

Discussion in 'HTML & JavaScript' started by OTrap, Jul 7, 2012.

  1. OTrap

    OTrap Jr. VIP Jr. VIP

    Joined:
    Jul 12, 2008
    Messages:
    2,282
    Likes Received:
    1,051
    I'm currently setting up a site for which I intend to get a lot of email traffic.

    One thing I've already set up is a GetResponse email submit form, but that got me thinking.

    Is there a way to pass the email address they used to open the link to my page in the first place into the populated field already? That way, they don't have to type it in. It's already there, so all they have to do is click a button, and they'll submit their email address.

    Does anyone know if this is doable? Thanks.

    PS - If I somehow managed to place this in the wrong section, my apologies. I'm afraid I'm not terribly adept at coding myself, so sometimes I don't know which is which.
     
  2. Zapdos

    Zapdos Power Member

    Joined:
    Oct 22, 2011
    Messages:
    597
    Likes Received:
    708
    Location:
    Eastern North Carolina
    In the email, have the link like:
    Code:
    [URL]http://www.yoursite.com/script.php?email=usersemail@provider.com[/URL]
    
    Remember to URL encode the email.

    On the page:
    Code:
    <?php
      $email = url_decode($_GET['email']);
      echo '<input type="text" value="'. $email .'" />';
    ?>
    
     
    • Thanks Thanks x 1
    Last edited: Jul 7, 2012
  3. OTrap

    OTrap Jr. VIP Jr. VIP

    Joined:
    Jul 12, 2008
    Messages:
    2,282
    Likes Received:
    1,051
    In your example above, the page would need to be a .php page, correct?

    And in the code above, should I replace the '$email' with the actual name of the field if it isn't that?
     
  4. OTrap

    OTrap Jr. VIP Jr. VIP

    Joined:
    Jul 12, 2008
    Messages:
    2,282
    Likes Received:
    1,051
    Also, will I be able to cloak the link at all, as I'm sure some emailers won't love such a link.
     
  5. Zapdos

    Zapdos Power Member

    Joined:
    Oct 22, 2011
    Messages:
    597
    Likes Received:
    708
    Location:
    Eastern North Carolina
    It needs to be a PHP enabled page. You can technically make .html and .htm use PHP with the correct settings. But yes, it does require PHP.

    $email is just a variable name, it can stay as is or be $donuts . Doesn't really matter, it doesn't matter and is simply for easy reading.
    $_GET['email'] retrieves the email in the URL. So if the link was:
    Code:
    ?email=monkey@zoo.com
    
    then $_GET['email'] would = monkey@zoo.com

    It's all dynamic.


    The link can be cloaked, but it depends on how much time you want to invest.
    you could use something like:
    www.url.com/script.php?user=2313
    That would then pull the email for user #2313
    You could also do
    www.url.com/script.php?main=user&prov=gmail
    Then have php put it into user@gmail.com


    Lots of ways, just depends on time.
     
    • Thanks Thanks x 1
  6. OTrap

    OTrap Jr. VIP Jr. VIP

    Joined:
    Jul 12, 2008
    Messages:
    2,282
    Likes Received:
    1,051
    I suppose I should have clarified. Sorry for the confusion, as I'm admittedly not great with this. Can it be redirected, so that the affiliate doesn't see the appends on the end of the link?

    IE something like bit.ly or something similar?
     
  7. jaerehan

    jaerehan Elite Member

    Joined:
    Sep 25, 2009
    Messages:
    1,500
    Likes Received:
    1,504
    Occupation:
    Time...Time is on my side..
    Location:
    EU
    Its called prepop.

    But im not sure what you want to do, send bulk mail and get them to your legit optin form to optin?

    Or just mail out from getresponse and prepop an affiliate offer?
     
    • Thanks Thanks x 1
  8. OTrap

    OTrap Jr. VIP Jr. VIP

    Joined:
    Jul 12, 2008
    Messages:
    2,282
    Likes Received:
    1,051
    I'm actually planning on buying solo ads, and I'm hoping to garner as many new leads as possible, and I was thinking that the fewer steps required to sign up, the more visitors would click the button to opt in.
     
  9. Zapdos

    Zapdos Power Member

    Joined:
    Oct 22, 2011
    Messages:
    597
    Likes Received:
    708
    Location:
    Eastern North Carolina
    Sure.

    email:
    Code:
    www.website.com/initial.php?email=email@provider.com
    
    initial.php
    Code:
    <?php
    if (isset($_GET['email']))
    $email = url_decode($_GET['email']);
    else
    $email = '';
    ?>
    
    <form method="post" action="submit.php">
      <input type="text" value="<?php echo $email; ?>" name="email"/>
      <input type="submit" value="submit">
    </form>
    
    submit.php:
    Code:
    <?php
      if (!$_POST['email'])
    header('Location: www.website.com/initial.php');
    
      else
    header('Location: www.website.com/this_has_been_cleaned/');
    ?>
    


    This is all mostly pseudo-code. It'll work for the most part, but without knowing exactly how your site is setup and your exact requirements I can't do much more.
     
    • Thanks Thanks x 1
    Last edited: Jul 7, 2012
  10. OTrap

    OTrap Jr. VIP Jr. VIP

    Joined:
    Jul 12, 2008
    Messages:
    2,282
    Likes Received:
    1,051
    So if I have the field's contents as below, how do I get the passed data into it?

    Code:
    <INPUT class="inpute82dd299-2fe4-4b35-adf6-e94f4cb1d4c9" type="text" name="category3" />
    
     
  11. OTrap

    OTrap Jr. VIP Jr. VIP

    Joined:
    Jul 12, 2008
    Messages:
    2,282
    Likes Received:
    1,051
    I'm not going to know the email addresses ahead of time.

    Affiliate A will send an email with my link in his email to his list of 20,000 subscribers. Say one of his subscribers, "Subscriber A," gets the email in his email account 'subscribera@gmail.com'.

    Now, he has another subscriber, "Subscriber B," whose email address (again, the one he opened to get my email) is 'subscriber.b@yahoo.com'.

    Now I don't know these subscribers, nor their email addresses, but I was wanting to know if there was a way to pass this email address, which I don't know, through the link to my landing page.

    Does that make more sense?
     
  12. travisle

    travisle Junior Member

    Joined:
    Jul 31, 2011
    Messages:
    101
    Likes Received:
    58
    Occupation:
    Director of Marketing
    Location:
    ekwity.com
    You could always use a plugin that has a facebook or gmail account optin. This way could just click the button and optin to your list. This is what I use.
     
  13. OTrap

    OTrap Jr. VIP Jr. VIP

    Joined:
    Jul 12, 2008
    Messages:
    2,282
    Likes Received:
    1,051
    I had considered that. Only a recent test of my current data showed that the majority of active subscribers have Yahoo! email addresses ... no idea why that is, but I'd like to be able to capture the email address they're logged into when they click my link and push it through into the email capture of the form.

    If it's doable, I was curious how, and who knew how.
     
  14. OTrap

    OTrap Jr. VIP Jr. VIP

    Joined:
    Jul 12, 2008
    Messages:
    2,282
    Likes Received:
    1,051
    Anything?
     
  15. Zapdos

    Zapdos Power Member

    Joined:
    Oct 22, 2011
    Messages:
    597
    Likes Received:
    708
    Location:
    Eastern North Carolina
    If you can't have the affiliate doing the newsletter set the URL to something you give and is also dynamic on their part, they will have to type their email in.
     
    • Thanks Thanks x 1
  16. JESSCON

    JESSCON Regular Member

    Joined:
    Jan 5, 2009
    Messages:
    255
    Likes Received:
    55
    Occupation:
    IM
    Location:
    USA
    Just use the a weber prepop functioh
     
  17. OTrap

    OTrap Jr. VIP Jr. VIP

    Joined:
    Jul 12, 2008
    Messages:
    2,282
    Likes Received:
    1,051
    So I tried this, but I got an error:
    Code:
    Fatal error: Call to undefined function url_decode() in /home/betterbu/public_html/html/initial.php on line 12
     
  18. OTrap

    OTrap Jr. VIP Jr. VIP

    Joined:
    Jul 12, 2008
    Messages:
    2,282
    Likes Received:
    1,051
    Okay, I've figured a way to get the affiliates to put the append on the link. I'm just still getting an error.

    I'll post the form code on here later, and perhaps someone will be able to explain it to me.

    I'll PayPal $50 to the person whose post is able to get through to my apparently dull understanding of how this works.
     
  19. Zapdos

    Zapdos Power Member

    Joined:
    Oct 22, 2011
    Messages:
    597
    Likes Received:
    708
    Location:
    Eastern North Carolina
    Work was finished and should now be fine. Spamming him for work is no longer needed.
     
    • Thanks Thanks x 1
    Last edited: Jul 19, 2012