ryam Posted April 21, 2010 Share Posted April 21, 2010 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); } // Quote Link to comment https://forums.phpfreaks.com/topic/199282-email-appear-as-link/ Share on other sites More sharing options...
MatthewJ Posted April 21, 2010 Share Posted April 21, 2010 It sounds like you're sending plain text email... formatting requires that you send html email. Quote Link to comment https://forums.phpfreaks.com/topic/199282-email-appear-as-link/#findComment-1045976 Share on other sites More sharing options...
Philip Posted April 21, 2010 Share Posted April 21, 2010 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"; Quote Link to comment https://forums.phpfreaks.com/topic/199282-email-appear-as-link/#findComment-1046017 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.