Question

How to include An UNSUBSCRIBE link in newsletter sent to multiple users using PHPMailer? Like mydomain/unsubscribe.php?email=useremail.

please help. Thanks in advance.

Was it helpful?

Solution

Just add it to the content of the message.

$mail->Body = "content<br><br>mydomain/unsubscribe.php?email=useremail";

or do you need the unsubscribe function?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top