I am using the standard email code to send an email
mail($to, $subject, $body)
However, for most people who receive this email, the email goes into their junk folder or the hyperlink isnt hyperlinked. Is there anything in php i can do to resolve this?
require_once is a php “function”, not technically, there for it should be in <?php tags as well.
What I said was, they gave you an example of PHP code. They assumed you’d realize it was PHP code and that you would understand that php code should be placed between opening and closing PHP tags. Nothing is magically putting the tags in, you are putting them in by typing them in.
You could use a service like sendgrid to send email instead of using the mail() function in php. Sendgrid will do a good job of improving your deliverability.