Sending links in mail

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
everurssantosh
Forum Newbie
Posts: 13
Joined: Wed Jun 25, 2008 10:26 am

Sending links in mail

Post 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
User avatar
andyhoneycutt
Forum Contributor
Posts: 468
Joined: Wed Aug 27, 2008 10:02 am
Location: Idaho Falls

Re: Sending links in mail

Post 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>";
 
User avatar
Mds
Forum Contributor
Posts: 110
Joined: Tue Apr 22, 2008 8:56 pm
Contact:

Re: Sending links in mail

Post by Mds »

You can use phpmailer class to send HTML mail though. try it .
everurssantosh
Forum Newbie
Posts: 13
Joined: Wed Jun 25, 2008 10:26 am

Re: Sending links in mail

Post by everurssantosh »

Thanks you everybody for this help
Post Reply