Jump to content

What is Opt-out link?


shane07

Recommended Posts

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

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

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.