Hello, in this video we are going to cover send in HTML emails using PHP mailer. So I'm going to set up so we can actually send regular text based emails if we want a bit more formatting because this, you know, really isn't gonna do cutting for any business really, we all want to add some HTML. So why don't we just want something really basic that has a Dave you can make it more complex than this. Simple and forces Bolden. Like so. And we're also going to die off of color equals red.
So let's save that and reload this. The email will be received any moment now. As you can see, it's literally just put that out as text and not formatted it for if we actually want to send a haich D Now email, what we have to do is first say dollar mail if HTML and then we set this to true. And what we can also do is do an alternative body so we can say, old. Body equals. And this is the alternative body that will get displayed if for some reason, HTML can't be displayed, and that is beneficial.
So you don't get any of these nasty tags. It's good practice to have the number and save that. Reload. Go back at any moment now, though, go sent here bold with no color red. So that means I've made a mistake here somewhere. But the red color.
What is that mistake then? Pretty sure that is the line colon red. Then we have a quick Google HTML style. colon. There we go. And I'll put equals, but it did work in terms of Yeah, sure.
Html that I put there. There you go. It's red. This is bold and illegal working now. So that is how you send HTML email using PayPal. PHP mailer.
If you have any question, feel free to pop me a message. You can also check out you know, the PHP mailer website and their GitHub page for all of the other functions that you can utilize for stuff like carbon copy, and you know, various other features as well. So you can do, you know, alternative reply to addresses. But you know, once you understand what I'm covering in these videos, you'll be good to go to look at the resources and add extra features, but any questions feel free to pop me a message, and as usual, I look forward to seeing you in the next video.