Hello,

How to store html tag in email message:

    $message = "Dear ".$data['stu_fname'].",".'<br><br>'.
    "Please click the link below to continue the registration progress: ".
    "http://www.website.com/registration3.php?student_id=".$data['student_id'];

This is what I receive on email:

Name: Guest
Phone: 88888888
Email: guest@mail.com

Dear Guest,<br><br>Please click the link below to continue the registration progress: http://www.website.com/registration3.php?student_id=53  

I would like the <br> turn into space and I also would like to disguise the website link into "Click this link" but how?

You should set your email to HTML. How depends on how you are actually sending it.

Instead of <br> try <br />. If that doesn't work use \r\n for a single line break. I'm quite sure \r\n is the solution you're looking for though pritaeas is correct, it depends on how you're sending it and even more so how you're reading/receiving it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.