Jump to content

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 <mary@example.com>, Kelly <kelly@example.com>' . "\r\n";

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.