Page 1 of 1

Sending links in mail

Posted: Mon Sep 01, 2008 9:30 am
by everurssantosh
Hi,

I am sending a link in mail where the receipents will click to visit the site.
Unfortunately, the links are disabled. I am only getting the text "Click Here" in blue text but the link is disabled.

I have tested this for all mail servers link Gmail, Hotmail and Yahoomail.

Below is the Code for your reference.

$return_html.= "<a href='.$customer_url.'new_user_sign_up_verification.php?conf_code=".$confirm_code."&email=".$str_Email."&lang=".$str_lang."'>". $ADMIN_MAIL4 ."</a>";

Please help me to enable the link in the mail sent to the users.

Thank you.
Santosh

Re: Sending links in mail

Posted: Tue Sep 02, 2008 2:41 pm
by andyhoneycutt
It looks like you might just be building the URL string improperly.

You have this:

Code: Select all

 
$return_html.= "<a href=[b]'.$customer_url.'[/b]new_user_sign_up_verification.php?conf_code=".$confirm_code."&email=".$str_Email."&lang=".$str_lang."'>". $ADMIN_MAIL4 ."</a>";
 
Try this:

Code: Select all

 
$return_html.= "<a href=[b]'".$customer_url."[/b]new_user_sign_up_verification.php?conf_code=".$confirm_code."&email=".$str_Email."&lang=".$str_lang."'>". $ADMIN_MAIL4 ."</a>";
 

Re: Sending links in mail

Posted: Tue Sep 02, 2008 3:53 pm
by Mds
You can use phpmailer class to send HTML mail though. try it .

Re: Sending links in mail

Posted: Wed Sep 03, 2008 1:47 am
by everurssantosh
Thanks you everybody for this help