unemployment Posted April 19, 2011 Share Posted April 19, 2011 The link in the email is showing up as plain text and not as a link. How do I fix this? if($notify === true) { $sender = fetch_user_info(fetch_username_by_id ($user_info['uid'])); $receiver = fetch_user_info(fetch_username_by_id ($uid)); $sender['displayName'] = ucwords("{$sender['firstname']} {$sender['lastname']}"); $receiver['displayName'] = ucwords("{$receiver['firstname']} {$receiver['lastname']}"); $body = "<table>Hi ${receiver['firstname']},\n \n <a href=\"http://mysite.com/u/{$sender['username']}\" title=\"Go to {$sender['displayName']}'s profile\">{$sender['displayName']}</a> would like to be.\n Please sign in to .\n \n The who</table>"; mail($receiver['email'], 'fssd', $body, 'From: [email protected]'); // return $sender; } Link to comment https://forums.phpfreaks.com/topic/234163-mail-link-not-working/ Share on other sites More sharing options...
PFMaBiSmAd Posted April 19, 2011 Share Posted April 19, 2011 You need to send a HTML email. There's an example (#4) at this link - mail Link to comment https://forums.phpfreaks.com/topic/234163-mail-link-not-working/#findComment-1203553 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.