View Single Post
Old 06-05-2012, 08:28 PM   PM User | #1
constantgamer24
New to the CF scene

 
Join Date: May 2012
Posts: 5
Thanks: 2
Thanked 0 Times in 0 Posts
constantgamer24 is an unknown quantity at this point
Mailing list unsubscribe as linked text?

I am trying to get it so that when I send a eMail out to my subscribers through my php mailing list; there will be an unsubscribe link. Currently I am doing so by using

PHP Code:
$unSub "Unsubscribe: http://www.openkonga.org/mailing_list/unsubscribe.php?eMail={$user['eMail']}";

$body "Greetings, $upperUser\n\n{$message}\n\n${unSub}"
Which works but its result is messy. Is there a way that I can make it so the text "Unsubscribe" is linked to http://www.openkonga.org/mailing_list/unsubscribe.php?eMail={$user['eMail']}

I've tried
PHP Code:
$unSub "<a href="http://www.openkonga.org/mailing_list/unsubscribe.php?eMail={$user['eMail']}"Unsubscribe</a>" 
but can't seem to get that to work. Is there something I am doing wrong with this syntax?
constantgamer24 is offline   Reply With Quote