shane07 Posted January 14, 2009 Share Posted January 14, 2009 Have somebody an idea about Opt-out link while sending email? How can I send email which includes Opt-out link through php mail function? Link to comment https://forums.phpfreaks.com/topic/140840-what-is-opt-out-link/ Share on other sites More sharing options...
Prismatic Posted January 14, 2009 Share Posted January 14, 2009 Have somebody an idea about Opt-out link while sending email? How can I send email which includes Opt-out link through php mail function? You simply include it as part of the mail body. The link would point to a file on your server that removes their email from the mailing list. Link to comment https://forums.phpfreaks.com/topic/140840-what-is-opt-out-link/#findComment-737149 Share on other sites More sharing options...
shane07 Posted January 14, 2009 Author Share Posted January 14, 2009 Have somebody an idea about Opt-out link while sending email? How can I send email which includes Opt-out link through php mail function? You simply include it as part of the mail body. The link would point to a file on your server that removes their email from the mailing list. Can you give an example how to do this? A small hint ? Link to comment https://forums.phpfreaks.com/topic/140840-what-is-opt-out-link/#findComment-737154 Share on other sites More sharing options...
DarkSuperHero Posted January 14, 2009 Share Posted January 14, 2009 in your e-mailsbody you would simply have something like this... <a href="http://www.yourdomain.com/optout.php?emailid=1">CLICK HERE TO OPT-OUT</a> optout.php would have a script that would search your database for emailid when it quals 1 if your database is set up like that....not the best example but hope it helps... Link to comment https://forums.phpfreaks.com/topic/140840-what-is-opt-out-link/#findComment-737158 Share on other sites More sharing options...
shane07 Posted January 14, 2009 Author Share Posted January 14, 2009 in your e-mailsbody you would simply have something like this... <a href="http://www.yourdomain.com/optout.php?emailid=1">CLICK HERE TO OPT-OUT</a> optout.php would have a script that would search your database for emailid when it quals 1 if your database is set up like that....not the best example but hope it helps... This means that instead of sending the message (in my case newsletter), we will send a link to the message which resides in our server. And the email receiver (in my case newsletter subscriber) will have to click that link to see the message. Am I right? Link to comment https://forums.phpfreaks.com/topic/140840-what-is-opt-out-link/#findComment-737166 Share on other sites More sharing options...
Prismatic Posted January 14, 2009 Share Posted January 14, 2009 in your e-mailsbody you would simply have something like this... <a href="http://www.yourdomain.com/optout.php?emailid=1">CLICK HERE TO OPT-OUT</a> optout.php would have a script that would search your database for emailid when it quals 1 if your database is set up like that....not the best example but hope it helps... This means that instead of sending the message (in my case newsletter), we will send a link to the message which resides in our server. And the email receiver (in my case newsletter subscriber) will have to click that link to see the message. Am I right? No. You append to the end of your newsletter the code for the link. Link to comment https://forums.phpfreaks.com/topic/140840-what-is-opt-out-link/#findComment-737172 Share on other sites More sharing options...
shane07 Posted January 14, 2009 Author Share Posted January 14, 2009 I don't know what exactly is opt-out link. So, this is confusing me. Link to comment https://forums.phpfreaks.com/topic/140840-what-is-opt-out-link/#findComment-737185 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.