PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, December 31, 2021

[FIXED] Using codeigniter 4, cannot send link in gmail

 December 31, 2021     codeigniter, gmail, href, hyperlink     No comments   

Issue

$message = "Hi ".$name.", <br>Your account is created successfully. Please click the below link to activate your account
<br><br><a href=".base_url()."/register/activate/".$uniid."Activate now </a>";

I already recieved the email but the href function is excluded. it only display "Hi myname, Your account is created successfully. Please click the below link to activate your account";

it dont display the link


Solution

You have syntax errors in your code.

  1. Missing > in anchor tag".$uniid."Activate now
  2. Wrong href dicleration href=".base_url()."/register/activate/".$uniid."
  3. wrap inner conditions with '.

Use below code

$message = "Hi {$name}, <br>Your account is created successfully. Please click the below link to activate your account
<br><br><a href='/register/activate/{$uniid}'>Activate now </a>";


Answered By - Abdulla Nilam
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing