tqla Posted April 24, 2008 Share Posted April 24, 2008 Hello. Is it possible to embed a link in an email blast that, when clicked by the email box holder, will carry their email address to the URL. For example: <A href="webpage.php?EmailAddress=$email">Click here</A> Thanks Link to comment https://forums.phpfreaks.com/topic/102815-solved-email-link-question/ Share on other sites More sharing options...
knowj Posted April 24, 2008 Share Posted April 24, 2008 yes this is very possible. Many email marketing solutions use hashes that are referenced to each email for images and links to track how the emails are used. having the email tagged onto the end of the url is a simpler method Link to comment https://forums.phpfreaks.com/topic/102815-solved-email-link-question/#findComment-526637 Share on other sites More sharing options...
DarkWater Posted April 24, 2008 Share Posted April 24, 2008 @knowj: This IS a help forum, so it's generally not polite to have a "yeah it's possible but I'm not telling you" attitude. @tgla: Can't you just append it to link when you send the email, tgla? Link to comment https://forums.phpfreaks.com/topic/102815-solved-email-link-question/#findComment-526640 Share on other sites More sharing options...
tqla Posted April 24, 2008 Author Share Posted April 24, 2008 Thank you DarkWater and knowj, I tried tagging it to the url but for some reason the email blast software ignores it and does not replace "$email" with the recipients email address. It will replace it in the body of the email but not in the link. This is probably by design of the email blast company. Is there a way to get the email address directly from the email "TO:" field? Link to comment https://forums.phpfreaks.com/topic/102815-solved-email-link-question/#findComment-526649 Share on other sites More sharing options...
DarkWater Posted April 24, 2008 Share Posted April 24, 2008 Let me see the code you have to send the email blast. Lol, that sounds funny. But I digress. Link to comment https://forums.phpfreaks.com/topic/102815-solved-email-link-question/#findComment-526652 Share on other sites More sharing options...
tqla Posted April 24, 2008 Author Share Posted April 24, 2008 Thanks DarkWater, Unfortunatly it's an email blast system that I do not have access to the underlying code to. The manual states to use the following to replace areas with variables. Dear {{firstname}}, this is your email address: {{email}} the above will be replaced with: Dear Jim, this is you email address: [email protected] The only problem is that when I try this: <a href="url/page.php?email={{email}}">Click here</a> The blast program will not change it {{email}} to the correct email address. So I was wondering if there was another solution. Like getting the email address from the "to:" field. Link to comment https://forums.phpfreaks.com/topic/102815-solved-email-link-question/#findComment-526674 Share on other sites More sharing options...
DarkWater Posted April 24, 2008 Share Posted April 24, 2008 If you don't have access to it, then I doubt it. <a href="url/page.php?email={{email}}>Click here</a> What actually gets put in place of {{email}} in the link? Link to comment https://forums.phpfreaks.com/topic/102815-solved-email-link-question/#findComment-526682 Share on other sites More sharing options...
tqla Posted April 25, 2008 Author Share Posted April 25, 2008 Nothing. It stays as {{email}}. Link to comment https://forums.phpfreaks.com/topic/102815-solved-email-link-question/#findComment-526690 Share on other sites More sharing options...
knowj Posted April 25, 2008 Share Posted April 25, 2008 @knowj: This IS a help forum, so it's generally not polite to have a "yeah it's possible but I'm not telling you" attitude. Sorry i mis-read the blast part of it i through he had answered his own question with the previous line of code Link to comment https://forums.phpfreaks.com/topic/102815-solved-email-link-question/#findComment-526692 Share on other sites More sharing options...
DarkWater Posted April 25, 2008 Share Posted April 25, 2008 @knowj: It's okay, I was just letting you know. =P @tqla: Contact the provider of the email blast service. They'd have more knowledge of their blast templating system than I would. =P Link to comment https://forums.phpfreaks.com/topic/102815-solved-email-link-question/#findComment-526698 Share on other sites More sharing options...
tqla Posted April 25, 2008 Author Share Posted April 25, 2008 Thanks DarkWater and Knowj. I'll do that. I just thought I'd ask about that capability because I always get great answers here. Link to comment https://forums.phpfreaks.com/topic/102815-solved-email-link-question/#findComment-526713 Share on other sites More sharing options...
DarkWater Posted April 25, 2008 Share Posted April 25, 2008 Well, it's a custom templating system that they use, so I have no idea. Otherwise I would have given you a real answer, lol. =P Link to comment https://forums.phpfreaks.com/topic/102815-solved-email-link-question/#findComment-526722 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.