Jump to content

Email Appear as Link


ryam

Recommended Posts

The script send confirmaiton email, but the link in the email does not appear as a link. When the message arrives, it is all one long text. But even if I put in returns <p>, the link is still not underlined and is not clickable. But if I forward the email to myself, it is clickable so I'm thinking something in the format.

 

The coding section from the script for the sending the email confirmat messages and link is:

 

 

//
function sendVerificationLinkToUser($to, $name, $from, $loc, $typ, $lists, $formid)
{
$ids = '';
$i=0;
foreach($lists as $listid)
{
	if(gettype($listid) == 'array')
	{
		$listid = $listid[0];
	}
	$ids .= ($i != 0)? ','.$listid : $listid;
	$i++;
}
$subj = ($typ)? "Subscription Confirmation" : "Unsubscription Confirmation";
$subType = ($typ)? "subscription" : "unsubscription";
$lurl = $loc.'?';
$link = $lurl.'brd='.base64_encode($to).'&noa='.base64_encode($typ).'&qms='.base64_encode($ids).'&rqm='.base64_encode($formid).'&twq='.base64_encode('FastSender');
$msg = "To complete your, ".$subType.", you need to confirm that you received this email by clicking the following link below 

".$link."

If clicking the link does not work, just copy and paste the entire link into your browser.";
sendMail($to, $name, $from, $subj, $msg);
}
//

Link to comment
https://forums.phpfreaks.com/topic/199282-email-appear-as-link/
Share on other sites

Yup take a look at the manual for these examples:

 

// To send HTML mail, the Content-type header must be set
$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

// Additional headers
$headers .= 'To: Mary <[email protected]>, Kelly <[email protected]>' . "\r\n";

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.