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!
I have an email that is sending out a thank you for signing up for book. I am trying to hyperlink text for the book but the email is not working. It either sends with code or does not send at all. If I remove the hyperlink the autoresponder works. Yet this defeats the purpose of the email..
Here is my code.
Thanks for all the replies.
If you want to send an email with HTML in it, then it needs to be MIME encoded. There is an example in the PHP docs, or use a library like SwiftMailer to deals with the painful details of emailing.
PS - If you want a plaintext email, then remove the <a> tag around the URL. Most email readers will create a link automatically.